2019-01-21 13:39:11 +00:00
|
|
|
inherit_from: ./.rubocop.yml
|
|
|
|
|
2019-03-28 19:16:56 +00:00
|
|
|
AllCops:
|
|
|
|
Include:
|
2020-04-01 11:47:22 +01:00
|
|
|
- '**/cmd/**/*.rb'
|
|
|
|
- '**/lib/**/*.rb'
|
|
|
|
- '**/spec/**/*.rb'
|
2019-03-28 19:16:56 +00:00
|
|
|
Exclude:
|
|
|
|
- '**/vendor/**/*'
|
|
|
|
|
2020-04-17 10:21:10 +01:00
|
|
|
# allow style to be disabled in non-formulae code
|
|
|
|
Style/DisableCopsWithinSourceCodeDirective:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-03-28 19:16:56 +00:00
|
|
|
# Intentionally disabled as it doesn't fit with our code style.
|
2019-01-21 13:39:11 +00:00
|
|
|
RSpec/AnyInstance:
|
|
|
|
Enabled: false
|
2020-05-05 15:50:10 +01:00
|
|
|
RSpec/FilePath:
|
|
|
|
Enabled: false
|
2019-08-05 13:56:51 +01:00
|
|
|
RSpec/ImplicitBlockExpectation:
|
|
|
|
Enabled: false
|
2019-11-27 13:09:21 +00:00
|
|
|
RSpec/SubjectStub:
|
|
|
|
Enabled: false
|
2019-03-28 19:16:56 +00:00
|
|
|
|
2020-05-05 15:50:10 +01:00
|
|
|
# TODO: try to enable these
|
2019-01-21 13:39:11 +00:00
|
|
|
RSpec/ContextWording:
|
|
|
|
Enabled: false
|
|
|
|
RSpec/DescribeClass:
|
|
|
|
Enabled: false
|
2019-07-25 20:55:17 +01:00
|
|
|
RSpec/LeakyConstantDeclaration:
|
|
|
|
Enabled: false
|
2019-01-21 13:39:11 +00:00
|
|
|
RSpec/MessageSpies:
|
|
|
|
Enabled: false
|
2020-02-11 12:46:49 +00:00
|
|
|
RSpec/RepeatedDescription:
|
|
|
|
Enabled: false
|
|
|
|
RSpec/RepeatedExampleGroupDescription:
|
|
|
|
Enabled: false
|
2019-01-21 13:39:11 +00:00
|
|
|
|
2020-05-05 15:50:10 +01:00
|
|
|
# TODO: try to reduce these
|
2019-03-28 19:16:56 +00:00
|
|
|
RSpec/ExampleLength:
|
|
|
|
Max: 75
|
2019-01-21 13:39:11 +00:00
|
|
|
RSpec/MultipleExpectations:
|
|
|
|
Max: 26
|
|
|
|
RSpec/NestedGroups:
|
|
|
|
Max: 5
|
2020-08-19 10:52:11 +01:00
|
|
|
RSpec/MultipleMemoizedHelpers:
|
|
|
|
Max: 12
|