rubocop-iknow 0.0.7 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/rubocop.yml +204 -109
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb6f366b0e1a2f83c5ef514743ea9c10f459747f726637e52147ca409d37b427
|
4
|
+
data.tar.gz: 22fdcef2d05cc5c9e7831b6cfff7320138081b9eeab7381729da92f0314f8fee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eaf65f18cb6bb6f87c4da15e51c095b07b60bb709628af78d11a2ca727559574358d3d5df045c71f714bd1693e7efad0598d4c42a731222f349663e5ac4d017e
|
7
|
+
data.tar.gz: a7d622e02ccc79467c17c8a71c8a0f438edad535ca8a78c1567d365fea1a1141acac7f0bd97094df2ff7155009fb51155efcabfc4c6e624460727707a9550159
|
data/rubocop.yml
CHANGED
@@ -1,190 +1,285 @@
|
|
1
|
-
---
|
2
1
|
AllCops:
|
3
2
|
TargetRubyVersion: 2.5
|
4
3
|
NewCops: enable
|
4
|
+
|
5
|
+
Layout/EmptyLineAfterMagicComment:
|
6
|
+
Severity: error
|
7
|
+
|
8
|
+
Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
9
|
+
Enabled: false
|
10
|
+
|
11
|
+
Layout/FirstArgumentIndentation:
|
12
|
+
# This forbids indentation relative to the expression
|
13
|
+
Enabled: false
|
14
|
+
|
15
|
+
Layout/FirstHashElementIndentation:
|
16
|
+
# This one in particular forbids what Emacs does by default for multi-line
|
17
|
+
# hash entries
|
18
|
+
Enabled: false
|
19
|
+
|
20
|
+
Layout/HashAlignment:
|
21
|
+
EnforcedHashRocketStyle:
|
22
|
+
- table
|
23
|
+
- key
|
24
|
+
EnforcedColonStyle:
|
25
|
+
- table
|
26
|
+
- key
|
27
|
+
|
5
28
|
Layout/LineLength:
|
6
29
|
# Max: 100
|
7
30
|
Enabled: false # Potentially bring this back later
|
8
|
-
|
9
|
-
|
10
|
-
Style/AsciiComments:
|
11
|
-
Enabled: false
|
12
|
-
Style/Documentation:
|
31
|
+
|
32
|
+
Layout/MultilineHashBraceLayout:
|
13
33
|
Enabled: false
|
14
|
-
|
34
|
+
|
35
|
+
Layout/MultilineMethodCallBraceLayout:
|
36
|
+
# Rules for formatting hash and method call braces: let's avoid these unless we
|
37
|
+
# can find something unambiguously positive.
|
15
38
|
Enabled: false
|
16
|
-
|
39
|
+
|
40
|
+
Layout/MultilineMethodCallIndentation:
|
41
|
+
# Cannot be configured to indent relative to expression.
|
17
42
|
Enabled: false
|
18
|
-
|
43
|
+
|
44
|
+
Layout/MultilineMethodDefinitionBraceLayout:
|
45
|
+
# None of their options are lovely
|
19
46
|
Enabled: false
|
20
|
-
|
47
|
+
|
48
|
+
Layout/SpaceInsideRangeLiteral:
|
21
49
|
Enabled: false
|
22
|
-
|
50
|
+
|
51
|
+
Layout/TrailingWhitespace:
|
52
|
+
Severity: error
|
53
|
+
|
54
|
+
Lint/AmbiguousBlockAssociation:
|
55
|
+
# In practise this rule seems overly restrictive for
|
56
|
+
# DSLs like RSpec that avoid parens.
|
23
57
|
Enabled: false
|
24
|
-
|
58
|
+
|
59
|
+
Lint/EmptyWhen:
|
25
60
|
Enabled: false
|
26
|
-
|
61
|
+
|
62
|
+
Lint/MissingSuper:
|
63
|
+
Severity: error
|
64
|
+
|
65
|
+
Lint/ParenthesesAsGroupedExpression:
|
27
66
|
Enabled: false
|
28
|
-
|
29
|
-
|
30
|
-
|
67
|
+
|
68
|
+
Lint/RaiseException:
|
69
|
+
Enabled: true
|
70
|
+
|
71
|
+
Lint/ShadowingOuterLocalVariable:
|
72
|
+
# I like this rule, but can see arguments against it
|
73
|
+
Enabled: true
|
74
|
+
|
75
|
+
Lint/StructNewOverride:
|
31
76
|
Enabled: false
|
32
|
-
|
77
|
+
|
78
|
+
Lint/UnusedBlockArgument:
|
79
|
+
AllowUnusedKeywordArguments: true
|
80
|
+
|
81
|
+
Lint/UnusedMethodArgument:
|
82
|
+
AllowUnusedKeywordArguments: true
|
83
|
+
IgnoreEmptyMethods: true
|
84
|
+
|
85
|
+
Metrics/AbcSize:
|
33
86
|
Enabled: false
|
34
|
-
|
87
|
+
|
88
|
+
Metrics/BlockLength:
|
35
89
|
Enabled: false
|
36
|
-
|
90
|
+
|
91
|
+
Metrics/ClassLength:
|
37
92
|
Enabled: false
|
38
|
-
|
93
|
+
|
94
|
+
Metrics/CyclomaticComplexity:
|
39
95
|
Enabled: false
|
96
|
+
|
40
97
|
Metrics/MethodLength:
|
41
98
|
Enabled: false
|
42
|
-
|
99
|
+
|
100
|
+
Metrics/ModuleLength:
|
43
101
|
Enabled: false
|
102
|
+
|
103
|
+
Metrics/ParameterLists:
|
104
|
+
Enabled: false
|
105
|
+
|
44
106
|
Metrics/PerceivedComplexity:
|
45
107
|
Enabled: false
|
46
|
-
|
108
|
+
|
109
|
+
Naming/AccessorMethodName:
|
47
110
|
Enabled: false
|
48
|
-
|
111
|
+
|
112
|
+
Naming/MethodParameterName:
|
49
113
|
Enabled: false
|
50
|
-
|
114
|
+
|
115
|
+
Naming/PredicateName:
|
116
|
+
NamePrefix: [is_]
|
117
|
+
|
118
|
+
Naming/RescuedExceptionsVariableName:
|
51
119
|
Enabled: false
|
52
|
-
|
120
|
+
|
121
|
+
Naming/VariableNumber:
|
53
122
|
Enabled: false
|
54
|
-
|
123
|
+
|
124
|
+
Style/AccessorGrouping:
|
55
125
|
Enabled: false
|
56
|
-
|
126
|
+
|
127
|
+
Style/AsciiComments:
|
57
128
|
Enabled: false
|
58
|
-
|
129
|
+
|
130
|
+
Style/BlockDelimiters:
|
59
131
|
Enabled: false
|
60
|
-
|
61
|
-
|
62
|
-
Metrics/ParameterLists:
|
132
|
+
|
133
|
+
Style/ClassAndModuleChildren:
|
63
134
|
Enabled: false
|
64
|
-
|
65
|
-
|
135
|
+
|
136
|
+
Style/ClassVars:
|
137
|
+
# Class vars are usually bad practice. Not universally.
|
66
138
|
Enabled: false
|
67
|
-
|
68
|
-
|
69
|
-
# That said, nobody in our team is going to use one of these unless
|
70
|
-
# it's a valid case
|
139
|
+
|
140
|
+
Style/CommentedKeyword:
|
71
141
|
Enabled: false
|
72
|
-
|
73
|
-
|
142
|
+
|
143
|
+
Style/Documentation:
|
74
144
|
Enabled: false
|
75
|
-
|
76
|
-
|
77
|
-
Lint/UnusedMethodArgument:
|
78
|
-
AllowUnusedKeywordArguments: true
|
79
|
-
IgnoreEmptyMethods: true
|
80
|
-
Lint/EmptyWhen:
|
145
|
+
|
146
|
+
Style/EmptyCaseCondition:
|
81
147
|
Enabled: false
|
82
|
-
|
83
|
-
|
84
|
-
Lint/StructNewOverride:
|
148
|
+
|
149
|
+
Style/EmptyElse:
|
85
150
|
Enabled: false
|
86
|
-
|
151
|
+
|
152
|
+
Style/ExplicitBlockArgument:
|
153
|
+
# This goes too far by demanding expensive block allocation always
|
87
154
|
Enabled: false
|
88
|
-
|
155
|
+
|
156
|
+
Style/FrozenStringLiteralComment:
|
157
|
+
Severity: error
|
158
|
+
|
159
|
+
Style/GuardClause:
|
160
|
+
# This is too prescriptive
|
89
161
|
Enabled: false
|
162
|
+
|
163
|
+
Style/HashEachMethods:
|
164
|
+
Enabled: true
|
165
|
+
|
90
166
|
Style/HashSyntax:
|
91
167
|
# We explicitly choose to use rocket style syntax when the Hash is being used
|
92
168
|
# to represent some other sort of data structure (trees, pairs, etc).
|
93
169
|
Enabled: false
|
94
|
-
|
95
|
-
Enabled: true
|
170
|
+
|
96
171
|
Style/HashTransformKeys:
|
97
172
|
Enabled: true
|
173
|
+
|
98
174
|
Style/HashTransformValues:
|
99
175
|
Enabled: true
|
100
|
-
|
101
|
-
|
102
|
-
Enabled: false
|
103
|
-
Style/SafeNavigation:
|
104
|
-
Enabled: false
|
105
|
-
Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
176
|
+
|
177
|
+
Style/IfUnlessModifier:
|
106
178
|
Enabled: false
|
107
|
-
|
179
|
+
|
180
|
+
Style/KeywordParametersOrder:
|
108
181
|
Enabled: false
|
109
|
-
|
182
|
+
|
183
|
+
Style/Lambda:
|
184
|
+
Enabled: true
|
185
|
+
EnforcedStyle: literal
|
186
|
+
|
187
|
+
Style/LambdaCall:
|
188
|
+
# restricts foo.() syntax, which we favour
|
110
189
|
Enabled: false
|
111
|
-
|
190
|
+
|
191
|
+
Style/MultilineBlockChain:
|
112
192
|
Enabled: false
|
113
|
-
|
193
|
+
|
194
|
+
Style/MutableConstant:
|
195
|
+
Severity: error
|
196
|
+
|
197
|
+
Style/NonNilCheck:
|
114
198
|
Enabled: false
|
199
|
+
|
115
200
|
Style/NumericLiterals:
|
116
201
|
Enabled: false
|
202
|
+
|
117
203
|
Style/NumericPredicate:
|
118
204
|
Enabled: false
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
Style/
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
Enabled: false
|
128
|
-
Style/SymbolLiteral:
|
129
|
-
Enabled: false
|
130
|
-
Style/KeywordParametersOrder:
|
131
|
-
Enabled: false
|
132
|
-
Style/StringConcatenation:
|
205
|
+
|
206
|
+
Style/PreferredHashMethods:
|
207
|
+
EnforcedStyle: verbose
|
208
|
+
|
209
|
+
Style/RaiseArgs:
|
210
|
+
EnforcedStyle: compact
|
211
|
+
|
212
|
+
Style/RedundantCondition:
|
133
213
|
Enabled: false
|
134
|
-
|
214
|
+
|
215
|
+
Style/RedundantException:
|
135
216
|
Enabled: false
|
136
|
-
|
217
|
+
|
218
|
+
Style/RedundantReturn:
|
219
|
+
# allow redundant return keyword where appropriate to convey meaning
|
137
220
|
Enabled: false
|
138
|
-
|
221
|
+
|
222
|
+
Style/RedundantSelf:
|
223
|
+
# allow redundant self keyword where appropriate to convey meaning
|
139
224
|
Enabled: false
|
140
|
-
|
225
|
+
|
226
|
+
Style/RescueModifier:
|
227
|
+
# I can see valid uses for this but they're far and few between.
|
228
|
+
# That said, nobody in our team is going to use one of these unless
|
229
|
+
# it's a valid case
|
141
230
|
Enabled: false
|
142
|
-
|
143
|
-
|
144
|
-
Naming/RescuedExceptionsVariableName:
|
231
|
+
|
232
|
+
Style/SafeNavigation:
|
145
233
|
Enabled: false
|
234
|
+
|
146
235
|
Style/SingleLineMethods:
|
147
236
|
Enabled: false
|
148
|
-
Style/CommentedKeyword:
|
149
|
-
Enabled: false
|
150
237
|
|
151
|
-
|
152
|
-
EnforcedHashRocketStyle:
|
153
|
-
- table
|
154
|
-
- key
|
155
|
-
EnforcedColonStyle:
|
156
|
-
- table
|
157
|
-
- key
|
158
|
-
|
159
|
-
Style/ClassVars:
|
160
|
-
# Class vars are usually bad practice. Not universally.
|
238
|
+
Style/SpecialGlobalVars:
|
161
239
|
Enabled: false
|
162
240
|
|
163
|
-
|
164
|
-
# None of their options are lovely
|
241
|
+
Style/StringConcatenation:
|
165
242
|
Enabled: false
|
166
243
|
|
167
244
|
Style/StringLiterals:
|
168
245
|
Enabled: true
|
246
|
+
Severity: error
|
247
|
+
|
169
248
|
Style/StringLiteralsInInterpolation:
|
170
249
|
Enabled: true
|
250
|
+
Severity: error
|
171
251
|
|
172
|
-
|
173
|
-
# In practise this rule seems overly restrictive for
|
174
|
-
# DSLs like RSpec that avoid parens.
|
252
|
+
Style/SymbolArray:
|
175
253
|
Enabled: false
|
176
254
|
|
177
|
-
|
178
|
-
|
255
|
+
Style/SymbolLiteral:
|
256
|
+
Enabled: false
|
257
|
+
|
258
|
+
Style/SymbolProc:
|
259
|
+
Enabled: false
|
260
|
+
|
261
|
+
Style/TernaryParentheses:
|
179
262
|
Enabled: true
|
263
|
+
EnforcedStyle: require_parentheses_when_complex
|
180
264
|
|
181
|
-
|
182
|
-
|
183
|
-
|
265
|
+
Style/TrailingCommaInArguments:
|
266
|
+
Severity: error
|
267
|
+
EnforcedStyleForMultiline: comma
|
268
|
+
|
269
|
+
Style/TrailingCommaInArrayLiteral:
|
270
|
+
Severity: error
|
271
|
+
EnforcedStyleForMultiline: consistent_comma
|
272
|
+
|
273
|
+
Style/TrailingCommaInHashLiteral:
|
274
|
+
Severity: error
|
275
|
+
EnforcedStyleForMultiline: comma
|
276
|
+
|
277
|
+
Style/TrailingUnderscoreVariable:
|
278
|
+
# I think this does more harm than good by hiding the array destructuring
|
184
279
|
Enabled: false
|
185
|
-
|
280
|
+
|
281
|
+
Style/WhileUntilModifier:
|
186
282
|
Enabled: false
|
187
|
-
|
188
|
-
|
189
|
-
# hash entries
|
283
|
+
|
284
|
+
Style/WordArray:
|
190
285
|
Enabled: false
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-iknow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- iKnow Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: edge@iknow.jp
|
@@ -36,7 +36,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
36
36
|
- !ruby/object:Gem::Version
|
37
37
|
version: '0'
|
38
38
|
requirements: []
|
39
|
-
rubygems_version: 3.0.3
|
39
|
+
rubygems_version: 3.0.3.1
|
40
40
|
signing_key:
|
41
41
|
specification_version: 4
|
42
42
|
summary: Rubocop Configuration used with iKnow Projects
|