
Since both projects are developed together and by the same team, we also want to have the same code structure and utility methods available in both projects. Therefore, this commit changes many files, but without a functional change.
46 lines
812 B
YAML
46 lines
812 B
YAML
# rspec cop settings
|
|
|
|
RSpec:
|
|
Include:
|
|
- "spec/**/*_spec.rb"
|
|
- "spec/spec_helper.rb"
|
|
- "spec/rails_helper.rb"
|
|
Exclude:
|
|
- 'db/seeds/**/*'
|
|
|
|
#
|
|
# Too stupid. There are also views, templates, request specs etc.
|
|
#
|
|
RSpec/DescribeClass:
|
|
Enabled: false
|
|
Exclude:
|
|
- "spec/views/**/*_spec.rb"
|
|
- "spec/custom_matchers/*"
|
|
|
|
RSpec/ExampleLength:
|
|
Enabled: false
|
|
|
|
RSpec/MessageSpies:
|
|
Enabled: false
|
|
|
|
RSpec/MultipleExpectations:
|
|
Enabled: false
|
|
|
|
RSpec/NestedGroups:
|
|
Max: 7
|
|
|
|
# Some of the small example helpers are not recognized correctly
|
|
#
|
|
RSpec/EmptyExampleGroup:
|
|
Enabled: false
|
|
|
|
# The Policies need to repeat examples and descriptions and might not be performant
|
|
#
|
|
RSpec/RepeatedExample:
|
|
Exclude:
|
|
- 'spec/policies/**'
|
|
|
|
RSpec/RepeatedDescription:
|
|
Exclude:
|
|
- 'spec/policies/**'
|