forked from brpoplpush/brpoplpush-redis_script
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.rubocop.yml
161 lines (120 loc) · 2.44 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
require:
- rubocop-performance
- rubocop-rake
- rubocop-rspec
inherit_mode:
merge:
- Exclude
AllCops:
TargetRubyVersion: 2.5
SuggestExtensions: true
NewCops: enable
Include:
- "**/Rakefile"
- "**/Gemfile"
- "*.gemspec"
- "lib/**/*.rb"
- "bin/**/*.rb"
- "spec/**/*.rb"
- "examples/**/*.rb"
- ".simplecov"
Exclude:
- "Gemfile.lock"
- "**/*.erb"
- "gemfiles/**/*"
- "bin/bench"
Layout/EndAlignment:
EnforcedStyleAlignWith: variable
Layout/LineLength:
Max: 120
Lint/AmbiguousBlockAssociation:
Exclude:
- "spec/**/*"
Lint/SuppressedException:
Enabled: true
Lint/UselessAssignment:
Enabled: true
Metrics/AbcSize:
Max: 38
Metrics/CyclomaticComplexity:
Max: 7
Metrics/MethodLength:
Max: 13
Metrics/BlockLength:
Enabled: true
Exclude:
- "**/spec/**/*.rb"
- "**/*.rake"
- "Rakefile"
- "*.gemspec"
Metrics/PerceivedComplexity:
Max: 8
Naming/AccessorMethodName:
Enabled: true
Naming/ConstantName:
Enabled: true
Naming/FileName:
Enabled: true
Naming/MethodParameterName:
AllowedNames:
- ex
Naming/RescuedExceptionsVariableName:
PreferredName: ex
RSpec/AlignLeftLetBrace:
Enabled: true
RSpec/DescribeClass:
Enabled: true
RSpec/RepeatedDescription:
Enabled: false
RSpec/ExampleLength:
Enabled: true
RSpec/ExpectActual:
Enabled: true
RSpec/ExpectChange:
EnforcedStyle: block
RSpec/FilePath:
Enabled: true
RSpec/InstanceVariable:
Enabled: true
RSpec/MultipleMemoizedHelpers:
Enabled: false
RSpec/MultipleExpectations:
Enabled: false
RSpec/NestedGroups:
Max: 4
Enabled: true
RSpec/RepeatedExample:
Enabled: true
Style/Documentation:
Enabled: true
Exclude:
- "examples/**/*.rb"
- "bin/**/*.rb"
Style/FrozenStringLiteralComment:
Enabled: true
Style/GlobalVars:
Enabled: true
Style/ModuleFunction:
Enabled: false
Style/StringLiterals:
Enabled: true
EnforcedStyle: double_quotes
ConsistentQuotesInMultiline: true
Style/StringLiteralsInInterpolation:
Enabled: true
Style/SymbolArray:
Enabled: true
EnforcedStyle: brackets
Style/TernaryParentheses:
Enabled: true
EnforcedStyle: require_parentheses_when_complex
AllowSafeAssignment: true
Style/TrailingCommaInArguments:
Enabled: true
EnforcedStyleForMultiline: comma
Style/TrailingCommaInArrayLiteral:
Enabled: true
EnforcedStyleForMultiline: comma
Style/TrailingCommaInHashLiteral:
Enabled: true
EnforcedStyleForMultiline: comma