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