Sprankelprachtig aan/afmeldsysteem

.rubocop.yml 11KB

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