Sprankelprachtig aan/afmeldsysteem

.rubocop.yml 16KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579
  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: 10
  23. # Cop supports --auto-correct.
  24. # Configuration parameters: EnforcedStyle, IndentationWidth.
  25. # SupportedStyles: with_first_parameter, with_fixed_indentation
  26. Layout/AlignParameters:
  27. Exclude:
  28. - 'app/models/activity.rb'
  29. - 'app/models/group.rb'
  30. - 'app/models/member.rb'
  31. - 'app/models/participant.rb'
  32. - 'app/models/person.rb'
  33. # Offense count: 2
  34. # Cop supports --auto-correct.
  35. # Configuration parameters: EnforcedStyle, IndentationWidth.
  36. # SupportedStyles: special_inside_parentheses, consistent, align_braces
  37. Layout/IndentHash:
  38. Exclude:
  39. - 'config/environments/development.rb'
  40. - 'config/environments/production.rb'
  41. # Offense count: 18
  42. # Cop supports --auto-correct.
  43. # Configuration parameters: Width, IgnoredPatterns.
  44. Layout/IndentationWidth:
  45. Exclude:
  46. - 'app/controllers/activities_controller.rb'
  47. - 'app/controllers/api/people_controller.rb'
  48. - 'app/controllers/groups_controller.rb'
  49. - 'app/controllers/members_controller.rb'
  50. - 'app/controllers/people_controller.rb'
  51. - 'app/models/activity.rb'
  52. # Offense count: 1
  53. # Cop supports --auto-correct.
  54. Layout/LeadingCommentSpace:
  55. Exclude:
  56. - 'config/initializers/assets.rb'
  57. # Offense count: 1
  58. # Cop supports --auto-correct.
  59. Layout/MultilineBlockLayout:
  60. Exclude:
  61. - 'app/models/activity.rb'
  62. # Offense count: 75
  63. # Cop supports --auto-correct.
  64. # Configuration parameters: EnforcedStyle, IndentationWidth.
  65. # SupportedStyles: aligned, indented, indented_relative_to_receiver
  66. Layout/MultilineMethodCallIndentation:
  67. Exclude:
  68. - 'app/controllers/activities_controller.rb'
  69. - 'app/controllers/dashboard_controller.rb'
  70. - 'app/controllers/groups_controller.rb'
  71. - 'app/controllers/members_controller.rb'
  72. - 'app/mailers/participant_mailer.rb'
  73. - 'app/models/activity.rb'
  74. - 'app/models/person.rb'
  75. # Offense count: 7
  76. # Cop supports --auto-correct.
  77. # Configuration parameters: EnforcedStyle, IndentationWidth.
  78. # SupportedStyles: aligned, indented
  79. Layout/MultilineOperationIndentation:
  80. Exclude:
  81. - 'app/helpers/authentication_helper.rb'
  82. - 'app/models/activity.rb'
  83. - 'app/models/participant.rb'
  84. # Offense count: 2
  85. # Cop supports --auto-correct.
  86. # Configuration parameters: EnforcedStyle.
  87. # SupportedStyles: space, no_space
  88. Layout/SpaceAroundEqualsInParameterDefault:
  89. Exclude:
  90. - 'app/helpers/authentication_helper.rb'
  91. - 'app/models/activity.rb'
  92. # Offense count: 1
  93. # Cop supports --auto-correct.
  94. # Configuration parameters: AllowForAlignment.
  95. Layout/SpaceAroundOperators:
  96. Exclude:
  97. - 'app/controllers/activities_controller.rb'
  98. # Offense count: 7
  99. # Cop supports --auto-correct.
  100. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
  101. # SupportedStyles: space, no_space
  102. # SupportedStylesForEmptyBraces: space, no_space
  103. Layout/SpaceBeforeBlockBraces:
  104. Exclude:
  105. - 'app/controllers/activities_controller.rb'
  106. - 'app/controllers/api/activities_controller.rb'
  107. - 'app/controllers/groups_controller.rb'
  108. # Offense count: 4
  109. # Cop supports --auto-correct.
  110. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
  111. # SupportedStyles: space, no_space, compact
  112. # SupportedStylesForEmptyBrackets: space, no_space
  113. Layout/SpaceInsideArrayLiteralBrackets:
  114. Exclude:
  115. - 'app/controllers/members_controller.rb'
  116. - 'config/environments/production.rb'
  117. # Offense count: 9
  118. # Cop supports --auto-correct.
  119. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
  120. # SupportedStyles: space, no_space
  121. # SupportedStylesForEmptyBraces: space, no_space
  122. Layout/SpaceInsideBlockBraces:
  123. Exclude:
  124. - 'app/controllers/activities_controller.rb'
  125. - 'app/controllers/api/activities_controller.rb'
  126. - 'app/controllers/groups_controller.rb'
  127. - 'config/puma.rb'
  128. # Offense count: 20
  129. # Cop supports --auto-correct.
  130. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
  131. # SupportedStyles: space, no_space, compact
  132. # SupportedStylesForEmptyBraces: space, no_space
  133. Layout/SpaceInsideHashLiteralBraces:
  134. Exclude:
  135. - 'app/models/activity.rb'
  136. - 'app/models/person.rb'
  137. - 'config/environments/production.rb'
  138. - 'test/controllers/activities_controller_test.rb'
  139. - 'test/controllers/api/activities_controller_test.rb'
  140. - 'test/controllers/api/groups_controller_test.rb'
  141. - 'test/controllers/api/people_controller_test.rb'
  142. - 'test/controllers/groups_controller_test.rb'
  143. - 'test/controllers/members_controller_test.rb'
  144. - 'test/controllers/people_controller_test.rb'
  145. # Offense count: 4
  146. # Cop supports --auto-correct.
  147. # Configuration parameters: EnforcedStyle.
  148. # SupportedStyles: space, no_space
  149. Layout/SpaceInsideParens:
  150. Exclude:
  151. - 'app/controllers/activities_controller.rb'
  152. # Offense count: 1
  153. # Cop supports --auto-correct.
  154. # Configuration parameters: IndentationWidth.
  155. Layout/Tab:
  156. Exclude:
  157. - 'config/puma.rb'
  158. # Offense count: 1
  159. # Configuration parameters: AllowSafeAssignment.
  160. Lint/AssignmentInCondition:
  161. Exclude:
  162. - 'bin/spring'
  163. # Offense count: 1
  164. # Configuration parameters: Whitelist.
  165. # Whitelist: present?, blank?, presence, try, try!
  166. Lint/SafeNavigationChain:
  167. Exclude:
  168. - 'app/controllers/api_controller.rb'
  169. # Offense count: 4
  170. Lint/ShadowingOuterLocalVariable:
  171. Exclude:
  172. - 'db/seeds.rb'
  173. # Offense count: 2
  174. # Cop supports --auto-correct.
  175. # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
  176. Lint/UnusedBlockArgument:
  177. Exclude:
  178. - 'db/seeds.rb'
  179. # Offense count: 1
  180. # Cop supports --auto-correct.
  181. # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
  182. Lint/UnusedMethodArgument:
  183. Exclude:
  184. - 'app/helpers/application_helper.rb'
  185. # Offense count: 8
  186. Lint/UselessAssignment:
  187. Exclude:
  188. - 'app/helpers/authentication_helper.rb'
  189. - 'db/seeds.rb'
  190. # Offense count: 30
  191. Metrics/AbcSize:
  192. Max: 71
  193. # Offense count: 6
  194. # Configuration parameters: CountComments, ExcludedMethods.
  195. # ExcludedMethods: refine
  196. Metrics/BlockLength:
  197. Max: 119
  198. # Offense count: 6
  199. # Configuration parameters: CountComments.
  200. Metrics/ClassLength:
  201. Max: 254
  202. # Offense count: 5
  203. Metrics/CyclomaticComplexity:
  204. Max: 12
  205. # Offense count: 35
  206. # Configuration parameters: CountComments, ExcludedMethods.
  207. Metrics/MethodLength:
  208. Max: 50
  209. # Offense count: 1
  210. # Configuration parameters: CountComments.
  211. Metrics/ModuleLength:
  212. Max: 105
  213. # Offense count: 3
  214. Metrics/PerceivedComplexity:
  215. Max: 13
  216. # Offense count: 1
  217. Naming/AccessorMethodName:
  218. Exclude:
  219. - 'app/helpers/authentication_helper.rb'
  220. # Offense count: 5
  221. # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
  222. # NamePrefix: is_, has_, have_
  223. # NamePrefixBlacklist: is_, has_, have_
  224. # NameWhitelist: is_a?
  225. # MethodDefinitionMacros: define_method, define_singleton_method
  226. Naming/PredicateName:
  227. Exclude:
  228. - 'spec/**/*'
  229. - 'app/helpers/authentication_helper.rb'
  230. - 'app/models/activity.rb'
  231. - 'app/models/group.rb'
  232. # Offense count: 2
  233. # Cop supports --auto-correct.
  234. Performance/Casecmp:
  235. Exclude:
  236. - 'app/models/activity.rb'
  237. # Offense count: 7
  238. # Cop supports --auto-correct.
  239. # Configuration parameters: EnforcedStyle.
  240. # SupportedStyles: always, conditionals
  241. Style/AndOr:
  242. Exclude:
  243. - 'app/controllers/authentication_controller.rb'
  244. - 'app/models/activity.rb'
  245. - 'app/models/user.rb'
  246. # Offense count: 9
  247. # Cop supports --auto-correct.
  248. # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods.
  249. # SupportedStyles: line_count_based, semantic, braces_for_chaining
  250. # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
  251. # FunctionalMethods: let, let!, subject, watch
  252. # IgnoredMethods: lambda, proc, it
  253. Style/BlockDelimiters:
  254. Exclude:
  255. - 'app/controllers/activities_controller.rb'
  256. - 'app/controllers/groups_controller.rb'
  257. - 'app/controllers/members_controller.rb'
  258. # Offense count: 3
  259. # Cop supports --auto-correct.
  260. # Configuration parameters: EnforcedStyle.
  261. # SupportedStyles: braces, no_braces, context_dependent
  262. Style/BracesAroundHashParameters:
  263. Exclude:
  264. - 'app/models/activity.rb'
  265. - 'app/models/person.rb'
  266. - 'config/environments/production.rb'
  267. # Offense count: 13
  268. # Cop supports --auto-correct.
  269. # Configuration parameters: AutoCorrect, EnforcedStyle.
  270. # SupportedStyles: nested, compact
  271. Style/ClassAndModuleChildren:
  272. Exclude:
  273. - 'app/controllers/api/activities_controller.rb'
  274. - 'app/controllers/api/groups_controller.rb'
  275. - 'app/controllers/api/me_controller.rb'
  276. - 'app/controllers/api/people_controller.rb'
  277. - 'app/helpers/api/activities_helper.rb'
  278. - 'app/helpers/api/groups_helper.rb'
  279. - 'app/helpers/api/me_helper.rb'
  280. - 'app/helpers/api/people_helper.rb'
  281. - 'test/controllers/api/activities_controller_test.rb'
  282. - 'test/controllers/api/groups_controller_test.rb'
  283. - 'test/controllers/api/me_controller_test.rb'
  284. - 'test/controllers/api/people_controller_test.rb'
  285. - 'test/test_helper.rb'
  286. # Offense count: 2
  287. # Cop supports --auto-correct.
  288. Style/ClassMethods:
  289. Exclude:
  290. - 'app/models/session.rb'
  291. # Offense count: 4
  292. # Cop supports --auto-correct.
  293. Style/ColonMethodCall:
  294. Exclude:
  295. - 'app/controllers/authentication_controller.rb'
  296. - 'app/models/token.rb'
  297. # Offense count: 9
  298. # Cop supports --auto-correct.
  299. # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
  300. # SupportedStyles: assign_to_condition, assign_inside_condition
  301. Style/ConditionalAssignment:
  302. Exclude:
  303. - 'app/controllers/activities_controller.rb'
  304. - 'app/controllers/api/activities_controller.rb'
  305. - 'app/controllers/groups_controller.rb'
  306. - 'app/mailers/participant_mailer.rb'
  307. - 'db/seeds.rb'
  308. # Offense count: 8
  309. # Configuration parameters: AllowCoercion.
  310. Style/DateTime:
  311. Exclude:
  312. - 'app/controllers/api/groups_controller.rb'
  313. - 'app/controllers/authentication_controller.rb'
  314. - 'app/controllers/dashboard_controller.rb'
  315. - 'app/helpers/authentication_helper.rb'
  316. - 'app/models/group.rb'
  317. - 'db/seeds.rb'
  318. # Offense count: 55
  319. Style/Documentation:
  320. Enabled: false
  321. # Offense count: 6
  322. # Cop supports --auto-correct.
  323. Style/ExpandPathArguments:
  324. Exclude:
  325. - 'bin/bundle'
  326. - 'bin/rails'
  327. - 'bin/rake'
  328. - 'bin/setup'
  329. - 'bin/update'
  330. - 'test/test_helper.rb'
  331. # Offense count: 140
  332. # Cop supports --auto-correct.
  333. # Configuration parameters: EnforcedStyle.
  334. # SupportedStyles: when_needed, always, never
  335. Style/FrozenStringLiteralComment:
  336. Enabled: false
  337. # Offense count: 14
  338. # Configuration parameters: MinBodyLength.
  339. Style/GuardClause:
  340. Exclude:
  341. - 'app/controllers/people_controller.rb'
  342. - 'app/helpers/activities_helper.rb'
  343. - 'app/helpers/authentication_helper.rb'
  344. - 'app/helpers/groups_helper.rb'
  345. - 'app/models/activity.rb'
  346. - 'app/models/person.rb'
  347. - 'app/models/user.rb'
  348. # Offense count: 1
  349. # Cop supports --auto-correct.
  350. # Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
  351. # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
  352. Style/HashSyntax:
  353. Exclude:
  354. - 'lib/tasks/sessions.rake'
  355. # Offense count: 20
  356. # Cop supports --auto-correct.
  357. Style/IfUnlessModifier:
  358. Exclude:
  359. - 'app/controllers/activities_controller.rb'
  360. - 'app/controllers/authentication_controller.rb'
  361. - 'app/controllers/people_controller.rb'
  362. - 'app/helpers/authentication_helper.rb'
  363. - 'app/models/activity.rb'
  364. - 'app/models/person.rb'
  365. - 'app/models/user.rb'
  366. - 'config/puma.rb'
  367. # Offense count: 1
  368. # Cop supports --auto-correct.
  369. # Configuration parameters: EnforcedStyle.
  370. # SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
  371. Style/MethodDefParentheses:
  372. Exclude:
  373. - 'app/helpers/dashboard_helper.rb'
  374. # Offense count: 2
  375. Style/MixinUsage:
  376. Exclude:
  377. - 'bin/setup'
  378. - 'bin/update'
  379. # Offense count: 1
  380. Style/MultilineTernaryOperator:
  381. Exclude:
  382. - 'app/models/session.rb'
  383. # Offense count: 3
  384. # Cop supports --auto-correct.
  385. Style/MutableConstant:
  386. Exclude:
  387. - 'app/models/participant.rb'
  388. - 'app/models/token.rb'
  389. # Offense count: 18
  390. # Cop supports --auto-correct.
  391. # Configuration parameters: EnforcedStyle.
  392. # SupportedStyles: both, prefix, postfix
  393. Style/NegatedIf:
  394. Exclude:
  395. - 'app/controllers/activities_controller.rb'
  396. - 'app/controllers/authentication_controller.rb'
  397. - 'app/controllers/dashboard_controller.rb'
  398. - 'app/controllers/members_controller.rb'
  399. - 'app/helpers/activities_helper.rb'
  400. - 'app/helpers/authentication_helper.rb'
  401. - 'app/helpers/groups_helper.rb'
  402. - 'app/models/activity.rb'
  403. - 'app/models/member.rb'
  404. - 'app/models/person.rb'
  405. # Offense count: 1
  406. # Cop supports --auto-correct.
  407. # Configuration parameters: EnforcedStyle, MinBodyLength.
  408. # SupportedStyles: skip_modifier_ifs, always
  409. Style/Next:
  410. Exclude:
  411. - 'db/seeds.rb'
  412. # Offense count: 12
  413. # Cop supports --auto-correct.
  414. Style/Not:
  415. Exclude:
  416. - 'app/controllers/authentication_controller.rb'
  417. - 'app/controllers/members_controller.rb'
  418. - 'app/helpers/authentication_helper.rb'
  419. - 'app/models/activity.rb'
  420. - 'app/models/member.rb'
  421. - 'app/models/person.rb'
  422. # Offense count: 1
  423. # Cop supports --auto-correct.
  424. # Configuration parameters: Strict.
  425. Style/NumericLiterals:
  426. MinDigits: 15
  427. # Offense count: 1
  428. # Cop supports --auto-correct.
  429. # Configuration parameters: PreferredDelimiters.
  430. Style/PercentLiteralDelimiters:
  431. Exclude:
  432. - 'config/spring.rb'
  433. # Offense count: 2
  434. # Cop supports --auto-correct.
  435. Style/Proc:
  436. Exclude:
  437. - 'app/models/activity.rb'
  438. # Offense count: 5
  439. # Cop supports --auto-correct.
  440. Style/RedundantParentheses:
  441. Exclude:
  442. - 'db/seeds.rb'
  443. # Offense count: 5
  444. # Cop supports --auto-correct.
  445. # Configuration parameters: AllowMultipleReturnValues.
  446. Style/RedundantReturn:
  447. Exclude:
  448. - 'app/helpers/authentication_helper.rb'
  449. - 'app/models/activity.rb'
  450. - 'app/models/person.rb'
  451. # Offense count: 85
  452. # Cop supports --auto-correct.
  453. Style/RedundantSelf:
  454. Exclude:
  455. - 'app/models/activity.rb'
  456. - 'app/models/group.rb'
  457. - 'app/models/member.rb'
  458. - 'app/models/participant.rb'
  459. - 'app/models/person.rb'
  460. - 'app/models/subgroup.rb'
  461. - 'app/models/token.rb'
  462. - 'app/models/user.rb'
  463. # Offense count: 3
  464. # Cop supports --auto-correct.
  465. # Configuration parameters: ConvertCodeThatCanStartToReturnNil, Whitelist.
  466. # Whitelist: present?, blank?, presence, try, try!
  467. Style/SafeNavigation:
  468. Exclude:
  469. - 'app/controllers/authentication_controller.rb'
  470. - 'app/models/person.rb'
  471. # Offense count: 215
  472. # Cop supports --auto-correct.
  473. # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
  474. # SupportedStyles: single_quotes, double_quotes
  475. Style/StringLiterals:
  476. Enabled: false
  477. # Offense count: 18
  478. # Cop supports --auto-correct.
  479. # Configuration parameters: MinSize.
  480. # SupportedStyles: percent, brackets
  481. Style/SymbolArray:
  482. EnforcedStyle: brackets
  483. # Offense count: 5
  484. # Cop supports --auto-correct.
  485. # Configuration parameters: IgnoredMethods.
  486. # IgnoredMethods: respond_to, define_method
  487. Style/SymbolProc:
  488. Exclude:
  489. - 'app/controllers/activities_controller.rb'
  490. - 'app/models/activity.rb'
  491. - 'app/models/member.rb'
  492. - 'db/migrate/20180904163645_generate_calendar_tokens.rb'
  493. # Offense count: 1
  494. # Cop supports --auto-correct.
  495. # Configuration parameters: EnforcedStyleForMultiline.
  496. # SupportedStylesForMultiline: comma, consistent_comma, no_comma
  497. Style/TrailingCommaInArguments:
  498. Exclude:
  499. - 'app/models/activity.rb'
  500. # Offense count: 3
  501. # Cop supports --auto-correct.
  502. # Configuration parameters: WordRegex.
  503. # SupportedStyles: percent, brackets
  504. Style/WordArray:
  505. EnforcedStyle: percent
  506. MinSize: 3
  507. # Offense count: 142
  508. # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
  509. # URISchemes: http, https
  510. Metrics/LineLength:
  511. Max: 200