Sprankelprachtig aan/afmeldsysteem

.rubocop.yml 16KB

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