-
Notifications
You must be signed in to change notification settings - Fork 6
/
.rubocop.yml
102 lines (70 loc) · 2.02 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
91
92
93
94
95
96
97
98
99
100
101
102
AllCops:
NewCops: enable
TargetRubyVersion: 2.7
Include:
- 'lib/**/*'
- 'spec/**/*_spec.rb'
- 'Gemfile'
- 'Rakefile'
- '*.gemspec'
DisplayCopNames: true
require:
- rubocop-rspec
- rubocop-rake
### Layouts ------------------------------------------------------------
Lint/AmbiguousOperatorPrecedence:
Enabled: false
Layout/SpaceBeforeBlockBraces:
Enabled: false
Layout/SpaceInsideBlockBraces:
Enabled: false
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
### Metrics ------------------------------------------------------------
Metrics:
Enabled: false
### Naming -------------------------------------------------------------
Naming/MethodParameterName:
Enabled: false
Naming/PredicateName:
Enabled: false
### Styles -------------------------------------------------------------
Style/CombinableLoops:
Enabled: false # there is case that it can't combined loop.
Style/Documentation:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/NumericPredicate:
Enabled: false # it is easier to read `size > 0` than `size.positive?`
Style/OptionalBooleanParameter:
Enabled: false # it is necessary to change distructively.
Style/ParallelAssignment:
Enabled: false # one line style is compact.
Style/PreferredHashMethods:
Enabled: false
Style/SymbolArray:
Enabled: false # general array literal is easy to read. no problem.
Style/ZeroLengthPredicate:
Enabled: false # it is so easy to read `a.size > 0` as `!a.empty?`
### RSpec --------------------------------------------------------------
RSpec/MessageSpies:
EnforcedStyle: receive
RSpec/DescribedClass:
Enabled: false
RSpec/ExampleLength:
Max: 25
RSpec/FilePath:
Enabled: false # too many offense
RSpec/ImplicitSubject:
Enabled: false # too many offenses
RSpec/MultipleExpectations:
Max: 15
RSpec/NestedGroups:
Max: 5
RSpec/PredicateMatcher:
Enabled: false
RSpec/RepeatedExampleGroupBody:
Enabled: false
RSpec/RepeatedExampleGroupDescription:
Enabled: false # too many offenses