Sprankelprachtig aan/afmeldsysteem

.rubocop.yml 10KB

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