Sprankelprachtig aan/afmeldsysteem

.rubocop.yml 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  1. # This configuration was generated by
  2. # `rubocop --auto-gen-config`
  3. # on 2018-12-24 11:44:14 +0100 using RuboCop version 0.60.0.
  4. # The point is for the user to remove these configuration records
  5. # one by one as the offenses are removed from the code base.
  6. # Note that changes in the inspected code, or installation of new
  7. # versions of RuboCop, may require this file to be generated again.
  8. AllCops:
  9. Exclude:
  10. - 'db/schema.rb'
  11. # Offense count: 1
  12. # Configuration parameters: AllowSafeAssignment.
  13. Lint/AssignmentInCondition:
  14. Exclude:
  15. - 'bin/spring'
  16. # Offense count: 1
  17. # Configuration parameters: Whitelist.
  18. # Whitelist: present?, blank?, presence, try, try!
  19. Lint/SafeNavigationChain:
  20. Exclude:
  21. - 'app/controllers/api_controller.rb'
  22. # Offense count: 30
  23. Metrics/AbcSize:
  24. Max: 71
  25. # Offense count: 6
  26. # Configuration parameters: CountComments, ExcludedMethods.
  27. # ExcludedMethods: refine
  28. Metrics/BlockLength:
  29. Max: 119
  30. # Offense count: 6
  31. # Configuration parameters: CountComments.
  32. Metrics/ClassLength:
  33. Max: 254
  34. # Offense count: 5
  35. Metrics/CyclomaticComplexity:
  36. Max: 12
  37. # Offense count: 35
  38. # Configuration parameters: CountComments, ExcludedMethods.
  39. Metrics/MethodLength:
  40. Max: 50
  41. # Offense count: 1
  42. # Configuration parameters: CountComments.
  43. Metrics/ModuleLength:
  44. Max: 105
  45. # Offense count: 3
  46. Metrics/PerceivedComplexity:
  47. Max: 13
  48. # Offense count: 1
  49. Naming/AccessorMethodName:
  50. Exclude:
  51. - 'app/helpers/authentication_helper.rb'
  52. # Offense count: 5
  53. # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
  54. # NamePrefix: is_, has_, have_
  55. # NamePrefixBlacklist: is_, has_, have_
  56. # NameWhitelist: is_a?
  57. # MethodDefinitionMacros: define_method, define_singleton_method
  58. Naming/PredicateName:
  59. Exclude:
  60. - 'spec/**/*'
  61. - 'app/helpers/authentication_helper.rb'
  62. - 'app/models/activity.rb'
  63. - 'app/models/group.rb'
  64. # Offense count: 2
  65. # Cop supports --auto-correct.
  66. Performance/Casecmp:
  67. Exclude:
  68. - 'app/models/activity.rb'
  69. # Offense count: 7
  70. # Cop supports --auto-correct.
  71. # Configuration parameters: EnforcedStyle.
  72. # SupportedStyles: always, conditionals
  73. Style/AndOr:
  74. Exclude:
  75. - 'app/controllers/authentication_controller.rb'
  76. - 'app/models/activity.rb'
  77. - 'app/models/user.rb'
  78. # Offense count: 9
  79. # Cop supports --auto-correct.
  80. # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods.
  81. # SupportedStyles: line_count_based, semantic, braces_for_chaining
  82. # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
  83. # FunctionalMethods: let, let!, subject, watch
  84. # IgnoredMethods: lambda, proc, it
  85. Style/BlockDelimiters:
  86. Exclude:
  87. - 'app/controllers/activities_controller.rb'
  88. - 'app/controllers/groups_controller.rb'
  89. - 'app/controllers/members_controller.rb'
  90. # Offense count: 3
  91. # Cop supports --auto-correct.
  92. # Configuration parameters: EnforcedStyle.
  93. # SupportedStyles: braces, no_braces, context_dependent
  94. Style/BracesAroundHashParameters:
  95. Exclude:
  96. - 'app/models/activity.rb'
  97. - 'app/models/person.rb'
  98. - 'config/environments/production.rb'
  99. # Offense count: 13
  100. # Cop supports --auto-correct.
  101. # Configuration parameters: AutoCorrect, EnforcedStyle.
  102. # SupportedStyles: nested, compact
  103. Style/ClassAndModuleChildren:
  104. Exclude:
  105. - 'app/controllers/api/activities_controller.rb'
  106. - 'app/controllers/api/groups_controller.rb'
  107. - 'app/controllers/api/me_controller.rb'
  108. - 'app/controllers/api/people_controller.rb'
  109. - 'app/helpers/api/activities_helper.rb'
  110. - 'app/helpers/api/groups_helper.rb'
  111. - 'app/helpers/api/me_helper.rb'
  112. - 'app/helpers/api/people_helper.rb'
  113. - 'test/controllers/api/activities_controller_test.rb'
  114. - 'test/controllers/api/groups_controller_test.rb'
  115. - 'test/controllers/api/me_controller_test.rb'
  116. - 'test/controllers/api/people_controller_test.rb'
  117. - 'test/test_helper.rb'
  118. # Offense count: 2
  119. # Cop supports --auto-correct.
  120. Style/ClassMethods:
  121. Exclude:
  122. - 'app/models/session.rb'
  123. # Offense count: 4
  124. # Cop supports --auto-correct.
  125. Style/ColonMethodCall:
  126. Exclude:
  127. - 'app/controllers/authentication_controller.rb'
  128. - 'app/models/token.rb'
  129. # Offense count: 9
  130. # Cop supports --auto-correct.
  131. # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
  132. # SupportedStyles: assign_to_condition, assign_inside_condition
  133. Style/ConditionalAssignment:
  134. Exclude:
  135. - 'app/controllers/activities_controller.rb'
  136. - 'app/controllers/api/activities_controller.rb'
  137. - 'app/controllers/groups_controller.rb'
  138. - 'app/mailers/participant_mailer.rb'
  139. - 'db/seeds.rb'
  140. # Offense count: 8
  141. # Configuration parameters: AllowCoercion.
  142. Style/DateTime:
  143. Exclude:
  144. - 'app/controllers/api/groups_controller.rb'
  145. - 'app/controllers/authentication_controller.rb'
  146. - 'app/controllers/dashboard_controller.rb'
  147. - 'app/helpers/authentication_helper.rb'
  148. - 'app/models/group.rb'
  149. - 'db/seeds.rb'
  150. # Offense count: 55
  151. Style/Documentation:
  152. Enabled: false
  153. # Offense count: 6
  154. # Cop supports --auto-correct.
  155. Style/ExpandPathArguments:
  156. Exclude:
  157. - 'bin/bundle'
  158. - 'bin/rails'
  159. - 'bin/rake'
  160. - 'bin/setup'
  161. - 'bin/update'
  162. - 'test/test_helper.rb'
  163. # Offense count: 140
  164. # Cop supports --auto-correct.
  165. # Configuration parameters: EnforcedStyle.
  166. # SupportedStyles: when_needed, always, never
  167. Style/FrozenStringLiteralComment:
  168. Enabled: false
  169. # Offense count: 14
  170. # Configuration parameters: MinBodyLength.
  171. Style/GuardClause:
  172. Exclude:
  173. - 'app/controllers/people_controller.rb'
  174. - 'app/helpers/activities_helper.rb'
  175. - 'app/helpers/authentication_helper.rb'
  176. - 'app/helpers/groups_helper.rb'
  177. - 'app/models/activity.rb'
  178. - 'app/models/person.rb'
  179. - 'app/models/user.rb'
  180. # Offense count: 1
  181. # Cop supports --auto-correct.
  182. # Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
  183. # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
  184. Style/HashSyntax:
  185. Exclude:
  186. - 'lib/tasks/sessions.rake'
  187. # Offense count: 20
  188. # Cop supports --auto-correct.
  189. Style/IfUnlessModifier:
  190. Exclude:
  191. - 'app/controllers/activities_controller.rb'
  192. - 'app/controllers/authentication_controller.rb'
  193. - 'app/controllers/people_controller.rb'
  194. - 'app/helpers/authentication_helper.rb'
  195. - 'app/models/activity.rb'
  196. - 'app/models/person.rb'
  197. - 'app/models/user.rb'
  198. - 'config/puma.rb'
  199. # Offense count: 1
  200. # Cop supports --auto-correct.
  201. # Configuration parameters: EnforcedStyle.
  202. # SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
  203. Style/MethodDefParentheses:
  204. Exclude:
  205. - 'app/helpers/dashboard_helper.rb'
  206. # Offense count: 2
  207. Style/MixinUsage:
  208. Exclude:
  209. - 'bin/setup'
  210. - 'bin/update'
  211. # Offense count: 1
  212. Style/MultilineTernaryOperator:
  213. Exclude:
  214. - 'app/models/session.rb'
  215. # Offense count: 3
  216. # Cop supports --auto-correct.
  217. Style/MutableConstant:
  218. Exclude:
  219. - 'app/models/participant.rb'
  220. - 'app/models/token.rb'
  221. # Offense count: 18
  222. # Cop supports --auto-correct.
  223. # Configuration parameters: EnforcedStyle.
  224. # SupportedStyles: both, prefix, postfix
  225. Style/NegatedIf:
  226. Exclude:
  227. - 'app/controllers/activities_controller.rb'
  228. - 'app/controllers/authentication_controller.rb'
  229. - 'app/controllers/dashboard_controller.rb'
  230. - 'app/controllers/members_controller.rb'
  231. - 'app/helpers/activities_helper.rb'
  232. - 'app/helpers/authentication_helper.rb'
  233. - 'app/helpers/groups_helper.rb'
  234. - 'app/models/activity.rb'
  235. - 'app/models/member.rb'
  236. - 'app/models/person.rb'
  237. # Offense count: 1
  238. # Cop supports --auto-correct.
  239. # Configuration parameters: EnforcedStyle, MinBodyLength.
  240. # SupportedStyles: skip_modifier_ifs, always
  241. Style/Next:
  242. Exclude:
  243. - 'db/seeds.rb'
  244. # Offense count: 12
  245. # Cop supports --auto-correct.
  246. Style/Not:
  247. Exclude:
  248. - 'app/controllers/authentication_controller.rb'
  249. - 'app/controllers/members_controller.rb'
  250. - 'app/helpers/authentication_helper.rb'
  251. - 'app/models/activity.rb'
  252. - 'app/models/member.rb'
  253. - 'app/models/person.rb'
  254. # Offense count: 1
  255. # Cop supports --auto-correct.
  256. # Configuration parameters: Strict.
  257. Style/NumericLiterals:
  258. MinDigits: 15
  259. # Offense count: 1
  260. # Cop supports --auto-correct.
  261. # Configuration parameters: PreferredDelimiters.
  262. Style/PercentLiteralDelimiters:
  263. Exclude:
  264. - 'config/spring.rb'
  265. # Offense count: 2
  266. # Cop supports --auto-correct.
  267. Style/Proc:
  268. Exclude:
  269. - 'app/models/activity.rb'
  270. # Offense count: 5
  271. # Cop supports --auto-correct.
  272. Style/RedundantParentheses:
  273. Exclude:
  274. - 'db/seeds.rb'
  275. # Offense count: 5
  276. # Cop supports --auto-correct.
  277. # Configuration parameters: AllowMultipleReturnValues.
  278. Style/RedundantReturn:
  279. Exclude:
  280. - 'app/helpers/authentication_helper.rb'
  281. - 'app/models/activity.rb'
  282. - 'app/models/person.rb'
  283. # Offense count: 85
  284. # Cop supports --auto-correct.
  285. Style/RedundantSelf:
  286. Exclude:
  287. - 'app/models/activity.rb'
  288. - 'app/models/group.rb'
  289. - 'app/models/member.rb'
  290. - 'app/models/participant.rb'
  291. - 'app/models/person.rb'
  292. - 'app/models/subgroup.rb'
  293. - 'app/models/token.rb'
  294. - 'app/models/user.rb'
  295. # Offense count: 3
  296. # Cop supports --auto-correct.
  297. # Configuration parameters: ConvertCodeThatCanStartToReturnNil, Whitelist.
  298. # Whitelist: present?, blank?, presence, try, try!
  299. Style/SafeNavigation:
  300. Exclude:
  301. - 'app/controllers/authentication_controller.rb'
  302. - 'app/models/person.rb'
  303. # Offense count: 215
  304. # Cop supports --auto-correct.
  305. # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
  306. # SupportedStyles: single_quotes, double_quotes
  307. Style/StringLiterals:
  308. Enabled: false
  309. # Offense count: 18
  310. # Cop supports --auto-correct.
  311. # Configuration parameters: MinSize.
  312. # SupportedStyles: percent, brackets
  313. Style/SymbolArray:
  314. EnforcedStyle: brackets
  315. # Offense count: 5
  316. # Cop supports --auto-correct.
  317. # Configuration parameters: IgnoredMethods.
  318. # IgnoredMethods: respond_to, define_method
  319. Style/SymbolProc:
  320. Exclude:
  321. - 'app/controllers/activities_controller.rb'
  322. - 'app/models/activity.rb'
  323. - 'app/models/member.rb'
  324. - 'db/migrate/20180904163645_generate_calendar_tokens.rb'
  325. # Offense count: 1
  326. # Cop supports --auto-correct.
  327. # Configuration parameters: EnforcedStyleForMultiline.
  328. # SupportedStylesForMultiline: comma, consistent_comma, no_comma
  329. Style/TrailingCommaInArguments:
  330. Exclude:
  331. - 'app/models/activity.rb'
  332. # Offense count: 3
  333. # Cop supports --auto-correct.
  334. # Configuration parameters: WordRegex.
  335. # SupportedStyles: percent, brackets
  336. Style/WordArray:
  337. EnforcedStyle: percent
  338. MinSize: 3
  339. # Offense count: 142
  340. # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
  341. # URISchemes: http, https
  342. Metrics/LineLength:
  343. Max: 200