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