Sprankelprachtig aan/afmeldsysteem

.rubocop.yml 12KB

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