-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.rubocop.yml
More file actions
116 lines (85 loc) · 2 KB
/
.rubocop.yml
File metadata and controls
116 lines (85 loc) · 2 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
inherit_from: ../.rubocop.yml
plugins:
- rubocop-rspec
Layout/LineLength:
Enabled: false
# Sometimes we're testing the operator
Lint/BinaryOperatorWithIdenticalOperands:
Enabled: false
Metrics/AbcSize:
Enabled: false
Metrics/BlockLength:
Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/ModuleLength:
Enabled: false
Metrics/MethodLength:
Enabled: false
############################################################
# rubocop-rspec
# believe me, it wasn't by choice
RSpec/AnyInstance:
Enabled: false
# we meant to do that
RSpec/BeforeAfterAll:
Enabled: false
# more words != more readable
RSpec/ContextWording:
Enabled: false
# not everything we test is a class
RSpec/DescribeClass:
Enabled: false
# explicit >>> implicit
RSpec/DescribedClass:
Enabled: false
# more punctuation != more readable
RSpec/DescribeSymbol:
Enabled: false
# setup cost / time >>> failure granularity
RSpec/ExampleLength:
Max: 20
CountAsOne:
- array
- hash
- heredoc
# we meant to do that
RSpec/ExpectInHook:
Enabled: false
# your naming scheme is not in possession of all the facts
RSpec/SpecFilePathFormat:
Enabled: false
RSpec/SpecFilePathSuffix:
Enabled: false
# explicit >>> implicit
RSpec/InstanceVariable:
Enabled: false
# maybe when 'all' has a corresponding 'none' matcher
RSpec/IteratedExpectation:
Enabled: false
# we meant to do that
RSpec/MessageSpies:
Enabled: false
# too late now
RSpec/MultipleMemoizedHelpers:
Enabled: false
# setup cost / time >>> failure granularity
RSpec/MultipleExpectations:
Enabled: false
# cure is worse than the disease
RSpec/NestedGroups:
Enabled: false
# more quotation marks != more readable
RSpec/SharedExamples:
Enabled: false
# we meant to do that
RSpec/StubbedMock:
Enabled: false
# we meant to do that
RSpec/VerifiedDoubles:
Enabled: false
############################################################
# rubocop-rspec
# enable newer rubocop-rspec cops
RSpec/IdenticalEqualityAssertion: # new in 2.4
Enabled: true