rubocop-iknow 0.0.6 → 0.0.9
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 +203 -97
- 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: ffa087314e293e1f086b60edd2675c7121a9863f0ed23373963cfb8dbe3c9236
|
4
|
+
data.tar.gz: 16167a4f521f1042e51f19fbc1dccc81098ccc1b60ea9793369cdf89e6ade56e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3d1a3257ef3561407120786e6499b000218b85923eed9ada1852dad8411a32a29ffb3a165736eda6afcefd1222c0ea5be9cb1f3d11b1268235c8abe98c2a267
|
7
|
+
data.tar.gz: 598cd7700e49deaaac0d9141e4eb02d376400456bee59fff86951f9d3773d82e1d1bde73efd50b97c8380643c239caabc985a81608d8557081864ee1504707c6
|
data/rubocop.yml
CHANGED
@@ -1,176 +1,282 @@
|
|
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/ParenthesesAsGroupedExpression:
|
27
63
|
Enabled: false
|
28
|
-
|
29
|
-
|
30
|
-
|
64
|
+
|
65
|
+
Lint/RaiseException:
|
66
|
+
Enabled: true
|
67
|
+
|
68
|
+
Lint/ShadowingOuterLocalVariable:
|
69
|
+
# I like this rule, but can see arguments against it
|
70
|
+
Enabled: true
|
71
|
+
|
72
|
+
Lint/StructNewOverride:
|
31
73
|
Enabled: false
|
32
|
-
|
74
|
+
|
75
|
+
Lint/UnusedBlockArgument:
|
76
|
+
AllowUnusedKeywordArguments: true
|
77
|
+
|
78
|
+
Lint/UnusedMethodArgument:
|
79
|
+
AllowUnusedKeywordArguments: true
|
80
|
+
IgnoreEmptyMethods: true
|
81
|
+
|
82
|
+
Metrics/AbcSize:
|
33
83
|
Enabled: false
|
34
|
-
|
84
|
+
|
85
|
+
Metrics/BlockLength:
|
35
86
|
Enabled: false
|
36
|
-
|
87
|
+
|
88
|
+
Metrics/ClassLength:
|
37
89
|
Enabled: false
|
38
|
-
|
90
|
+
|
91
|
+
Metrics/CyclomaticComplexity:
|
39
92
|
Enabled: false
|
93
|
+
|
40
94
|
Metrics/MethodLength:
|
41
95
|
Enabled: false
|
42
|
-
|
96
|
+
|
97
|
+
Metrics/ModuleLength:
|
43
98
|
Enabled: false
|
99
|
+
|
100
|
+
Metrics/ParameterLists:
|
101
|
+
Enabled: false
|
102
|
+
|
44
103
|
Metrics/PerceivedComplexity:
|
45
104
|
Enabled: false
|
46
|
-
|
105
|
+
|
106
|
+
Naming/AccessorMethodName:
|
47
107
|
Enabled: false
|
48
|
-
|
108
|
+
|
109
|
+
Naming/MethodParameterName:
|
49
110
|
Enabled: false
|
50
|
-
|
111
|
+
|
112
|
+
Naming/PredicateName:
|
113
|
+
NamePrefix: [is_]
|
114
|
+
|
115
|
+
Naming/RescuedExceptionsVariableName:
|
51
116
|
Enabled: false
|
52
|
-
|
117
|
+
|
118
|
+
Naming/VariableNumber:
|
53
119
|
Enabled: false
|
54
|
-
|
120
|
+
|
121
|
+
Style/AccessorGrouping:
|
55
122
|
Enabled: false
|
56
|
-
|
123
|
+
|
124
|
+
Style/AsciiComments:
|
57
125
|
Enabled: false
|
58
|
-
|
126
|
+
|
127
|
+
Style/BlockDelimiters:
|
59
128
|
Enabled: false
|
60
|
-
|
61
|
-
|
62
|
-
Metrics/ParameterLists:
|
129
|
+
|
130
|
+
Style/ClassAndModuleChildren:
|
63
131
|
Enabled: false
|
64
|
-
|
65
|
-
|
132
|
+
|
133
|
+
Style/ClassVars:
|
134
|
+
# Class vars are usually bad practice. Not universally.
|
66
135
|
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
|
136
|
+
|
137
|
+
Style/CommentedKeyword:
|
71
138
|
Enabled: false
|
72
|
-
|
73
|
-
|
74
|
-
IgnoreEmptyMethods: true
|
75
|
-
Lint/EmptyWhen:
|
139
|
+
|
140
|
+
Style/Documentation:
|
76
141
|
Enabled: false
|
77
|
-
|
78
|
-
|
79
|
-
Lint/StructNewOverride:
|
142
|
+
|
143
|
+
Style/EmptyCaseCondition:
|
80
144
|
Enabled: false
|
81
|
-
|
145
|
+
|
146
|
+
Style/EmptyElse:
|
82
147
|
Enabled: false
|
83
|
-
|
148
|
+
|
149
|
+
Style/ExplicitBlockArgument:
|
150
|
+
# This goes too far by demanding expensive block allocation always
|
84
151
|
Enabled: false
|
152
|
+
|
153
|
+
Style/FrozenStringLiteralComment:
|
154
|
+
Severity: error
|
155
|
+
|
156
|
+
Style/GuardClause:
|
157
|
+
# This is too prescriptive
|
158
|
+
Enabled: false
|
159
|
+
|
160
|
+
Style/HashEachMethods:
|
161
|
+
Enabled: true
|
162
|
+
|
85
163
|
Style/HashSyntax:
|
86
164
|
# We explicitly choose to use rocket style syntax when the Hash is being used
|
87
165
|
# to represent some other sort of data structure (trees, pairs, etc).
|
88
166
|
Enabled: false
|
89
|
-
|
90
|
-
Enabled: true
|
167
|
+
|
91
168
|
Style/HashTransformKeys:
|
92
169
|
Enabled: true
|
170
|
+
|
93
171
|
Style/HashTransformValues:
|
94
172
|
Enabled: true
|
95
|
-
|
96
|
-
|
97
|
-
Enabled: false
|
98
|
-
Style/SafeNavigation:
|
99
|
-
Enabled: false
|
100
|
-
Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
173
|
+
|
174
|
+
Style/IfUnlessModifier:
|
101
175
|
Enabled: false
|
102
|
-
|
176
|
+
|
177
|
+
Style/KeywordParametersOrder:
|
103
178
|
Enabled: false
|
104
|
-
|
179
|
+
|
180
|
+
Style/Lambda:
|
181
|
+
Enabled: true
|
182
|
+
EnforcedStyle: literal
|
183
|
+
|
184
|
+
Style/LambdaCall:
|
185
|
+
# restricts foo.() syntax, which we favour
|
105
186
|
Enabled: false
|
106
|
-
|
187
|
+
|
188
|
+
Style/MultilineBlockChain:
|
107
189
|
Enabled: false
|
108
|
-
|
190
|
+
|
191
|
+
Style/MutableConstant:
|
192
|
+
Severity: error
|
193
|
+
|
194
|
+
Style/NonNilCheck:
|
109
195
|
Enabled: false
|
196
|
+
|
110
197
|
Style/NumericLiterals:
|
111
198
|
Enabled: false
|
199
|
+
|
112
200
|
Style/NumericPredicate:
|
113
201
|
Enabled: false
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
Style/
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
Naming/AccessorMethodName:
|
202
|
+
|
203
|
+
Style/PreferredHashMethods:
|
204
|
+
EnforcedStyle: verbose
|
205
|
+
|
206
|
+
Style/RaiseArgs:
|
207
|
+
EnforcedStyle: compact
|
208
|
+
|
209
|
+
Style/RedundantCondition:
|
123
210
|
Enabled: false
|
124
|
-
|
211
|
+
|
212
|
+
Style/RedundantException:
|
125
213
|
Enabled: false
|
126
|
-
|
214
|
+
|
215
|
+
Style/RedundantReturn:
|
216
|
+
# allow redundant return keyword where appropriate to convey meaning
|
127
217
|
Enabled: false
|
128
|
-
|
129
|
-
|
130
|
-
|
218
|
+
|
219
|
+
Style/RedundantSelf:
|
220
|
+
# allow redundant self keyword where appropriate to convey meaning
|
131
221
|
Enabled: false
|
132
|
-
|
222
|
+
|
223
|
+
Style/RescueModifier:
|
224
|
+
# I can see valid uses for this but they're far and few between.
|
225
|
+
# That said, nobody in our team is going to use one of these unless
|
226
|
+
# it's a valid case
|
133
227
|
Enabled: false
|
134
|
-
|
228
|
+
|
229
|
+
Style/SafeNavigation:
|
135
230
|
Enabled: false
|
136
231
|
|
137
|
-
|
138
|
-
|
139
|
-
- table
|
140
|
-
- key
|
141
|
-
EnforcedColonStyle:
|
142
|
-
- table
|
143
|
-
- key
|
232
|
+
Style/SingleLineMethods:
|
233
|
+
Enabled: false
|
144
234
|
|
145
|
-
Style/
|
146
|
-
# Class vars are usually bad practice. Not universally.
|
235
|
+
Style/SpecialGlobalVars:
|
147
236
|
Enabled: false
|
148
237
|
|
149
|
-
|
150
|
-
# None of their options are lovely
|
238
|
+
Style/StringConcatenation:
|
151
239
|
Enabled: false
|
152
240
|
|
153
241
|
Style/StringLiterals:
|
154
242
|
Enabled: true
|
243
|
+
Severity: error
|
244
|
+
|
155
245
|
Style/StringLiteralsInInterpolation:
|
156
246
|
Enabled: true
|
247
|
+
Severity: error
|
157
248
|
|
158
|
-
|
159
|
-
# In practise this rule seems overly restrictive for
|
160
|
-
# DSLs like RSpec that avoid parens.
|
249
|
+
Style/SymbolArray:
|
161
250
|
Enabled: false
|
162
251
|
|
163
|
-
|
164
|
-
|
252
|
+
Style/SymbolLiteral:
|
253
|
+
Enabled: false
|
254
|
+
|
255
|
+
Style/SymbolProc:
|
256
|
+
Enabled: false
|
257
|
+
|
258
|
+
Style/TernaryParentheses:
|
165
259
|
Enabled: true
|
260
|
+
EnforcedStyle: require_parentheses_when_complex
|
166
261
|
|
167
|
-
|
168
|
-
|
169
|
-
|
262
|
+
Style/TrailingCommaInArguments:
|
263
|
+
Severity: error
|
264
|
+
EnforcedStyleForMultiline: comma
|
265
|
+
|
266
|
+
Style/TrailingCommaInArrayLiteral:
|
267
|
+
Severity: error
|
268
|
+
EnforcedStyleForMultiline: consistent_comma
|
269
|
+
|
270
|
+
Style/TrailingCommaInHashLiteral:
|
271
|
+
Severity: error
|
272
|
+
EnforcedStyleForMultiline: comma
|
273
|
+
|
274
|
+
Style/TrailingUnderscoreVariable:
|
275
|
+
# I think this does more harm than good by hiding the array destructuring
|
170
276
|
Enabled: false
|
171
|
-
|
277
|
+
|
278
|
+
Style/WhileUntilModifier:
|
172
279
|
Enabled: false
|
173
|
-
|
174
|
-
|
175
|
-
# hash entries
|
280
|
+
|
281
|
+
Style/WordArray:
|
176
282
|
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.9
|
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-04-11 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
|