Sprankelprachtig aan/afmeldsysteem

.rubocop.yml 9.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  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: 1
  197. # Cop supports --auto-correct.
  198. # Configuration parameters: EnforcedStyle, MinBodyLength.
  199. # SupportedStyles: skip_modifier_ifs, always
  200. Style/Next:
  201. Exclude:
  202. - 'db/seeds.rb'
  203. # Offense count: 1
  204. # Cop supports --auto-correct.
  205. # Configuration parameters: Strict.
  206. Style/NumericLiterals:
  207. MinDigits: 15
  208. # Offense count: 1
  209. # Cop supports --auto-correct.
  210. # Configuration parameters: PreferredDelimiters.
  211. Style/PercentLiteralDelimiters:
  212. Exclude:
  213. - 'config/spring.rb'
  214. # Offense count: 2
  215. # Cop supports --auto-correct.
  216. Style/Proc:
  217. Exclude:
  218. - 'app/models/activity.rb'
  219. # Offense count: 5
  220. # Cop supports --auto-correct.
  221. Style/RedundantParentheses:
  222. Exclude:
  223. - 'db/seeds.rb'
  224. # Offense count: 5
  225. # Cop supports --auto-correct.
  226. # Configuration parameters: AllowMultipleReturnValues.
  227. Style/RedundantReturn:
  228. Exclude:
  229. - 'app/helpers/authentication_helper.rb'
  230. - 'app/models/activity.rb'
  231. - 'app/models/person.rb'
  232. # Offense count: 85
  233. # Cop supports --auto-correct.
  234. Style/RedundantSelf:
  235. Exclude:
  236. - 'app/models/activity.rb'
  237. - 'app/models/group.rb'
  238. - 'app/models/member.rb'
  239. - 'app/models/participant.rb'
  240. - 'app/models/person.rb'
  241. - 'app/models/subgroup.rb'
  242. - 'app/models/token.rb'
  243. - 'app/models/user.rb'
  244. # Offense count: 3
  245. # Cop supports --auto-correct.
  246. # Configuration parameters: ConvertCodeThatCanStartToReturnNil, Whitelist.
  247. # Whitelist: present?, blank?, presence, try, try!
  248. Style/SafeNavigation:
  249. Exclude:
  250. - 'app/controllers/authentication_controller.rb'
  251. - 'app/models/person.rb'
  252. # Offense count: 215
  253. # Cop supports --auto-correct.
  254. # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
  255. # SupportedStyles: single_quotes, double_quotes
  256. Style/StringLiterals:
  257. Enabled: false
  258. # Offense count: 18
  259. # Cop supports --auto-correct.
  260. # Configuration parameters: MinSize.
  261. # SupportedStyles: percent, brackets
  262. Style/SymbolArray:
  263. EnforcedStyle: brackets
  264. # Offense count: 5
  265. # Cop supports --auto-correct.
  266. # Configuration parameters: IgnoredMethods.
  267. # IgnoredMethods: respond_to, define_method
  268. Style/SymbolProc:
  269. Exclude:
  270. - 'app/controllers/activities_controller.rb'
  271. - 'app/models/activity.rb'
  272. - 'app/models/member.rb'
  273. - 'db/migrate/20180904163645_generate_calendar_tokens.rb'
  274. # Offense count: 1
  275. # Cop supports --auto-correct.
  276. # Configuration parameters: EnforcedStyleForMultiline.
  277. # SupportedStylesForMultiline: comma, consistent_comma, no_comma
  278. Style/TrailingCommaInArguments:
  279. Exclude:
  280. - 'app/models/activity.rb'
  281. # Offense count: 3
  282. # Cop supports --auto-correct.
  283. # Configuration parameters: WordRegex.
  284. # SupportedStyles: percent, brackets
  285. Style/WordArray:
  286. EnforcedStyle: percent
  287. MinSize: 3
  288. # Offense count: 142
  289. # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
  290. # URISchemes: http, https
  291. Metrics/LineLength:
  292. Max: 200