Sprankelprachtig aan/afmeldsysteem

.rubocop.yml 10.0KB

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