Sprankelprachtig aan/afmeldsysteem

.rubocop.yml 11KB

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