brew/Library/.rubocop_rspec.yml
Mike McQuaid 60c9472b14
rubocop_rspec: disable RSpec/FilePath.
We keep adding to the list of exceptions and this fails if it isn't run
in the right directory.
2020-05-05 15:50:10 +01:00

46 lines
904 B
YAML

inherit_from: ./.rubocop.yml
AllCops:
Include:
- '**/cmd/**/*.rb'
- '**/lib/**/*.rb'
- '**/spec/**/*.rb'
Exclude:
- '**/vendor/**/*'
# allow style to be disabled in non-formulae code
Style/DisableCopsWithinSourceCodeDirective:
Enabled: false
# Intentionally disabled as it doesn't fit with our code style.
RSpec/AnyInstance:
Enabled: false
RSpec/FilePath:
Enabled: false
RSpec/ImplicitBlockExpectation:
Enabled: false
RSpec/SubjectStub:
Enabled: false
# TODO: try to enable these
RSpec/ContextWording:
Enabled: false
RSpec/DescribeClass:
Enabled: false
RSpec/LeakyConstantDeclaration:
Enabled: false
RSpec/MessageSpies:
Enabled: false
RSpec/RepeatedDescription:
Enabled: false
RSpec/RepeatedExampleGroupDescription:
Enabled: false
# TODO: try to reduce these
RSpec/ExampleLength:
Max: 75
RSpec/MultipleExpectations:
Max: 26
RSpec/NestedGroups:
Max: 5