mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-22 17:35:40 +01:00
Fix (relax) remaining RSpec/*
cops (#30693)
This commit is contained in:
parent
8d5ed19c6d
commit
ab8474fd7f
2 changed files with 10 additions and 15 deletions
|
@ -1,10 +1,20 @@
|
||||||
---
|
---
|
||||||
RSpec/ExampleLength:
|
RSpec/ExampleLength:
|
||||||
CountAsOne: ['array', 'heredoc', 'method_call']
|
CountAsOne: ['array', 'heredoc', 'method_call']
|
||||||
|
Max: 20 # Override default of 5
|
||||||
|
|
||||||
|
RSpec/MultipleExpectations:
|
||||||
|
Max: 10 # Overrides default of 1
|
||||||
|
|
||||||
|
RSpec/MultipleMemoizedHelpers:
|
||||||
|
Max: 20 # Overrides default of 5
|
||||||
|
|
||||||
RSpec/NamedSubject:
|
RSpec/NamedSubject:
|
||||||
EnforcedStyle: named_only
|
EnforcedStyle: named_only
|
||||||
|
|
||||||
|
RSpec/NestedGroups:
|
||||||
|
Max: 10 # Overrides default of 3
|
||||||
|
|
||||||
RSpec/NotToNot:
|
RSpec/NotToNot:
|
||||||
EnforcedStyle: to_not
|
EnforcedStyle: to_not
|
||||||
|
|
||||||
|
|
|
@ -27,21 +27,6 @@ Metrics/CyclomaticComplexity:
|
||||||
Metrics/PerceivedComplexity:
|
Metrics/PerceivedComplexity:
|
||||||
Max: 27
|
Max: 27
|
||||||
|
|
||||||
# Configuration parameters: CountAsOne.
|
|
||||||
RSpec/ExampleLength:
|
|
||||||
Max: 18
|
|
||||||
|
|
||||||
RSpec/MultipleExpectations:
|
|
||||||
Max: 7
|
|
||||||
|
|
||||||
# Configuration parameters: AllowSubject.
|
|
||||||
RSpec/MultipleMemoizedHelpers:
|
|
||||||
Max: 17
|
|
||||||
|
|
||||||
# Configuration parameters: AllowedGroups.
|
|
||||||
RSpec/NestedGroups:
|
|
||||||
Max: 6
|
|
||||||
|
|
||||||
Rails/OutputSafety:
|
Rails/OutputSafety:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'config/initializers/simple_form.rb'
|
- 'config/initializers/simple_form.rb'
|
||||||
|
|
Loading…
Reference in a new issue