Sprankelprachtig aan/afmeldsysteem

.rubocop.yml 10KB

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