Sprankelprachtig aan/afmeldsysteem

.rubocop.yml 11KB

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