Sprankelprachtig aan/afmeldsysteem

.rubocop.yml 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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: 2
  40. # Cop supports --auto-correct.
  41. Style/ClassMethods:
  42. Exclude:
  43. - 'app/models/session.rb'
  44. # Offense count: 4
  45. # Cop supports --auto-correct.
  46. Style/ColonMethodCall:
  47. Exclude:
  48. - 'app/controllers/authentication_controller.rb'
  49. - 'app/models/token.rb'
  50. # Offense count: 9
  51. # Cop supports --auto-correct.
  52. # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
  53. # SupportedStyles: assign_to_condition, assign_inside_condition
  54. Style/ConditionalAssignment:
  55. Exclude:
  56. - 'app/controllers/activities_controller.rb'
  57. - 'app/controllers/api/activities_controller.rb'
  58. - 'app/controllers/groups_controller.rb'
  59. - 'app/mailers/participant_mailer.rb'
  60. - 'db/seeds.rb'
  61. # Offense count: 8
  62. # Configuration parameters: AllowCoercion.
  63. Style/DateTime:
  64. Exclude:
  65. - 'app/controllers/api/groups_controller.rb'
  66. - 'app/controllers/authentication_controller.rb'
  67. - 'app/controllers/dashboard_controller.rb'
  68. - 'app/helpers/authentication_helper.rb'
  69. - 'app/models/group.rb'
  70. - 'db/seeds.rb'
  71. # Offense count: 55
  72. Style/Documentation:
  73. Enabled: false
  74. # Offense count: 140
  75. # Cop supports --auto-correct.
  76. # Configuration parameters: EnforcedStyle.
  77. # SupportedStyles: when_needed, always, never
  78. Style/FrozenStringLiteralComment:
  79. Enabled: false
  80. # Offense count: 1
  81. # Cop supports --auto-correct.
  82. # Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
  83. # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
  84. Style/HashSyntax:
  85. Exclude:
  86. - 'lib/tasks/sessions.rake'
  87. # Offense count: 1
  88. Style/MultilineTernaryOperator:
  89. Exclude:
  90. - 'app/models/session.rb'
  91. # Offense count: 1
  92. # Cop supports --auto-correct.
  93. # Configuration parameters: Strict.
  94. Style/NumericLiterals:
  95. MinDigits: 15
  96. # Offense count: 1
  97. # Cop supports --auto-correct.
  98. # Configuration parameters: PreferredDelimiters.
  99. Style/PercentLiteralDelimiters:
  100. Exclude:
  101. - 'config/spring.rb'
  102. # Offense count: 85
  103. # Cop supports --auto-correct.
  104. Style/RedundantSelf:
  105. Exclude:
  106. - 'app/models/activity.rb'
  107. - 'app/models/group.rb'
  108. - 'app/models/member.rb'
  109. - 'app/models/participant.rb'
  110. - 'app/models/person.rb'
  111. - 'app/models/subgroup.rb'
  112. - 'app/models/token.rb'
  113. - 'app/models/user.rb'
  114. # Offense count: 215
  115. # Cop supports --auto-correct.
  116. # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
  117. # SupportedStyles: single_quotes, double_quotes
  118. Style/StringLiterals:
  119. Enabled: false
  120. # Offense count: 18
  121. # Cop supports --auto-correct.
  122. # Configuration parameters: MinSize.
  123. # SupportedStyles: percent, brackets
  124. Style/SymbolArray:
  125. EnforcedStyle: brackets
  126. # Offense count: 3
  127. # Cop supports --auto-correct.
  128. # Configuration parameters: WordRegex.
  129. # SupportedStyles: percent, brackets
  130. Style/WordArray:
  131. EnforcedStyle: percent
  132. MinSize: 3
  133. # Offense count: 142
  134. # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
  135. # URISchemes: http, https
  136. Metrics/LineLength:
  137. Max: 200