rubocop-rspec.yml in rubocop-discourse-2.5.0 vs rubocop-rspec.yml in rubocop-discourse-2.6.0
- old
+ new
@@ -6,19 +6,43 @@
RSpec/AroundBlock:
Enabled: true
RSpec/BeforeAfterAll:
- Enabled: false # To be decided
+ Enabled: true
+RSpec/ChangeByZero:
+ Enabled: true
+
RSpec/ContextMethod:
- Enabled: false # TODO
+ Enabled: true
RSpec/ContextWording:
- Enabled: false # To be decided
+ Enabled: true
+ Prefixes:
+ - when
+ - with
+ - without
+ - for
+ - while
+ - if
+ - as
+ - after
RSpec/DescribeClass:
- Enabled: false # To be decided
+ Enabled: true
+ Exclude:
+ - "**/spec/features/**/*"
+ - "**/spec/requests/**/*"
+ - "**/spec/routing/**/*"
+ - "**/spec/system/**/*"
+ - "**/spec/views/**/*"
+ - "**/spec/initializers/**/*"
+ - "**/spec/integration/**/*"
+ - "**/spec/integrity/**/*"
+ - "**/spec/tasks/**/*"
+ - "**/spec/lib/freedom_patches/**/*"
+ - "**/spec/multisite/**/*"
RSpec/DescribeMethod:
Enabled: true
RSpec/DescribeSymbol: