forked from levinmr/rspec-snapshot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
90 lines (84 loc) · 1.69 KB
/
.rubocop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
require:
- rubocop-rake
- rubocop-rspec
AllCops:
NewCops: "enable"
Exclude:
- "Gemfile"
- "Rakefile"
- "bin/**/*"
- "spec/fixtures/**/*"
TargetRubyVersion: 2.5
Layout/EmptyLinesAroundAttributeAccessor:
Enabled: true
Layout/LineLength:
Max: 80
Layout/SpaceAroundMethodCallOperator:
Enabled: true
Lint:
Severity: error
Lint/DeprecatedOpenSSLConstant:
Enabled: true
Lint/RaiseException:
Enabled: true
Lint/StructNewOverride:
Enabled: true
Metrics/BlockLength:
Exclude:
- "rspec-snapshot.gemspec"
- "spec/**/*"
RSpec/AnyInstance:
Enabled: true
RSpec/ContextWording:
Prefixes:
- when
- with
- without
- and
RSpec/ExampleLength:
Enabled: true
Max: 10
RSpec/ExpectInHook:
Enabled: true
RSpec/FilePath:
Enabled: true
RSpec/InstanceVariable:
Enabled: true
RSpec/LeakyConstantDeclaration:
Enabled: true
RSpec/LetSetup:
Enabled: true
RSpec/MessageSpies:
Enabled: true
RSpec/MultipleExpectations:
Enabled: true
RSpec/MultipleMemoizedHelpers:
Enabled: false
RSpec/NamedSubject:
Enabled: false # Disabled for preference
RSpec/NestedGroups:
Max: 6
RSpec/ScatteredSetup:
Enabled: true
RSpec/SubjectStub:
Enabled: true
RSpec/VerifiedDoubles:
Enabled: true
Style/AccessModifierDeclarations:
Enabled: false # Disabled since we follow Clean Code's newspaper code structure
Style/DoubleNegation:
Enabled: true
Style/ExponentialNotation:
Enabled: true
Style/HashEachMethods:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true
Style/LineEndConcatenation:
Enabled: false
Style/MultilineTernaryOperator:
Enabled: false # Disabled due to preference
Style/SlicingWithRange:
Enabled: true