Sprankelprachtig aan/afmeldsysteem

.rubocop.yml 4.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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. - 'bin/update'
  12. - 'bin/setup'
  13. # Offense count: 30
  14. Metrics/AbcSize:
  15. Max: 71
  16. # Offense count: 6
  17. # Configuration parameters: CountComments, ExcludedMethods.
  18. # ExcludedMethods: refine
  19. Metrics/BlockLength:
  20. Max: 119
  21. # Offense count: 6
  22. # Configuration parameters: CountComments.
  23. Metrics/ClassLength:
  24. Max: 254
  25. # Offense count: 5
  26. Metrics/CyclomaticComplexity:
  27. Max: 12
  28. # Offense count: 35
  29. # Configuration parameters: CountComments, ExcludedMethods.
  30. Metrics/MethodLength:
  31. Max: 50
  32. # Offense count: 1
  33. # Configuration parameters: CountComments.
  34. Metrics/ModuleLength:
  35. Max: 105
  36. # Offense count: 3
  37. Metrics/PerceivedComplexity:
  38. Max: 13
  39. # Offense count: 9
  40. # Cop supports --auto-correct.
  41. # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods.
  42. # SupportedStyles: line_count_based, semantic, braces_for_chaining
  43. # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
  44. # FunctionalMethods: let, let!, subject, watch
  45. # IgnoredMethods: lambda, proc, it
  46. Style/BlockDelimiters:
  47. Exclude:
  48. - 'app/controllers/activities_controller.rb'
  49. - 'app/controllers/groups_controller.rb'
  50. - 'app/controllers/members_controller.rb'
  51. # Offense count: 3
  52. # Cop supports --auto-correct.
  53. # Configuration parameters: EnforcedStyle.
  54. # SupportedStyles: braces, no_braces, context_dependent
  55. Style/BracesAroundHashParameters:
  56. Exclude:
  57. - 'app/models/activity.rb'
  58. - 'app/models/person.rb'
  59. - 'config/environments/production.rb'
  60. # Offense count: 2
  61. # Cop supports --auto-correct.
  62. Style/ClassMethods:
  63. Exclude:
  64. - 'app/models/session.rb'
  65. # Offense count: 4
  66. # Cop supports --auto-correct.
  67. Style/ColonMethodCall:
  68. Exclude:
  69. - 'app/controllers/authentication_controller.rb'
  70. - 'app/models/token.rb'
  71. # Offense count: 9
  72. # Cop supports --auto-correct.
  73. # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
  74. # SupportedStyles: assign_to_condition, assign_inside_condition
  75. Style/ConditionalAssignment:
  76. Exclude:
  77. - 'app/controllers/activities_controller.rb'
  78. - 'app/controllers/api/activities_controller.rb'
  79. - 'app/controllers/groups_controller.rb'
  80. - 'app/mailers/participant_mailer.rb'
  81. - 'db/seeds.rb'
  82. # Offense count: 8
  83. # Configuration parameters: AllowCoercion.
  84. Style/DateTime:
  85. Exclude:
  86. - 'app/controllers/api/groups_controller.rb'
  87. - 'app/controllers/authentication_controller.rb'
  88. - 'app/controllers/dashboard_controller.rb'
  89. - 'app/helpers/authentication_helper.rb'
  90. - 'app/models/group.rb'
  91. - 'db/seeds.rb'
  92. # Offense count: 55
  93. Style/Documentation:
  94. Enabled: false
  95. # Offense count: 140
  96. # Cop supports --auto-correct.
  97. # Configuration parameters: EnforcedStyle.
  98. # SupportedStyles: when_needed, always, never
  99. Style/FrozenStringLiteralComment:
  100. Enabled: false
  101. # Offense count: 1
  102. # Cop supports --auto-correct.
  103. # Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
  104. # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
  105. Style/HashSyntax:
  106. Exclude:
  107. - 'lib/tasks/sessions.rake'
  108. # Offense count: 1
  109. Style/MultilineTernaryOperator:
  110. Exclude:
  111. - 'app/models/session.rb'
  112. # Offense count: 1
  113. # Cop supports --auto-correct.
  114. # Configuration parameters: Strict.
  115. Style/NumericLiterals:
  116. MinDigits: 15
  117. # Offense count: 1
  118. # Cop supports --auto-correct.
  119. # Configuration parameters: PreferredDelimiters.
  120. Style/PercentLiteralDelimiters:
  121. Exclude:
  122. - 'config/spring.rb'
  123. # Offense count: 85
  124. # Cop supports --auto-correct.
  125. Style/RedundantSelf:
  126. Exclude:
  127. - 'app/models/activity.rb'
  128. - 'app/models/group.rb'
  129. - 'app/models/member.rb'
  130. - 'app/models/participant.rb'
  131. - 'app/models/person.rb'
  132. - 'app/models/subgroup.rb'
  133. - 'app/models/token.rb'
  134. - 'app/models/user.rb'
  135. # Offense count: 215
  136. # Cop supports --auto-correct.
  137. # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
  138. # SupportedStyles: single_quotes, double_quotes
  139. Style/StringLiterals:
  140. Enabled: false
  141. # Offense count: 18
  142. # Cop supports --auto-correct.
  143. # Configuration parameters: MinSize.
  144. # SupportedStyles: percent, brackets
  145. Style/SymbolArray:
  146. EnforcedStyle: brackets
  147. # Offense count: 3
  148. # Cop supports --auto-correct.
  149. # Configuration parameters: WordRegex.
  150. # SupportedStyles: percent, brackets
  151. Style/WordArray:
  152. EnforcedStyle: percent
  153. MinSize: 3
  154. # Offense count: 142
  155. # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
  156. # URISchemes: http, https
  157. Metrics/LineLength:
  158. Max: 200