rubocop-iknow 0.0.6 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/rubocop.yml +203 -97
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6095d79bd2ef760088027a2d7b92e37af0cfedcdf9b70c120d88655302d0893c
4
- data.tar.gz: ea4856a93e68e158a555c2ffa2c9241a570ab7055d31ea70880daeb8fd33ad27
3
+ metadata.gz: ffa087314e293e1f086b60edd2675c7121a9863f0ed23373963cfb8dbe3c9236
4
+ data.tar.gz: 16167a4f521f1042e51f19fbc1dccc81098ccc1b60ea9793369cdf89e6ade56e
5
5
  SHA512:
6
- metadata.gz: d055e17e935cdd9a62a18cd577dfc6818ba119dce79be61034b39d3b2aa1a623fa27282ef04630b48c3e312c71a8c862eb77fbb07e9ad60dc62cb09c9a335616
7
- data.tar.gz: 8b1a86a2a4896adaa565a857902eb64cd98a2d0654648493137b847df9c845a794d3f2f8ea4e0c9f3d61a7f71badb8efc069f9e3b8ffdb3d2f792d27e29cf9ea
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
- Metrics/BlockLength:
9
- Enabled: false
10
- Style/AsciiComments:
11
- Enabled: false
12
- Style/Documentation:
31
+
32
+ Layout/MultilineHashBraceLayout:
13
33
  Enabled: false
14
- Style/BlockDelimiters:
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
- Style/TernaryParentheses:
39
+
40
+ Layout/MultilineMethodCallIndentation:
41
+ # Cannot be configured to indent relative to expression.
17
42
  Enabled: false
18
- Style/RedundantReturn:
43
+
44
+ Layout/MultilineMethodDefinitionBraceLayout:
45
+ # None of their options are lovely
19
46
  Enabled: false
20
- Style/RedundantSelf:
47
+
48
+ Layout/SpaceInsideRangeLiteral:
21
49
  Enabled: false
22
- Style/GuardClause:
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
- Style/IfUnlessModifier:
58
+
59
+ Lint/EmptyWhen:
25
60
  Enabled: false
26
- Style/WhileUntilModifier:
61
+
62
+ Lint/ParenthesesAsGroupedExpression:
27
63
  Enabled: false
28
- Style/RaiseArgs:
29
- EnforcedStyle: compact
30
- Style/RedundantException:
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
- Style/SpecialGlobalVars:
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
- Style/EmptyCaseCondition:
84
+
85
+ Metrics/BlockLength:
35
86
  Enabled: false
36
- Style/RedundantCondition:
87
+
88
+ Metrics/ClassLength:
37
89
  Enabled: false
38
- Metrics/AbcSize:
90
+
91
+ Metrics/CyclomaticComplexity:
39
92
  Enabled: false
93
+
40
94
  Metrics/MethodLength:
41
95
  Enabled: false
42
- Metrics/CyclomaticComplexity:
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
- Metrics/ClassLength:
105
+
106
+ Naming/AccessorMethodName:
47
107
  Enabled: false
48
- Metrics/ModuleLength:
108
+
109
+ Naming/MethodParameterName:
49
110
  Enabled: false
50
- Style/Lambda:
111
+
112
+ Naming/PredicateName:
113
+ NamePrefix: [is_]
114
+
115
+ Naming/RescuedExceptionsVariableName:
51
116
  Enabled: false
52
- Style/LambdaCall:
117
+
118
+ Naming/VariableNumber:
53
119
  Enabled: false
54
- Style/MultilineBlockChain:
120
+
121
+ Style/AccessorGrouping:
55
122
  Enabled: false
56
- Style/WordArray:
123
+
124
+ Style/AsciiComments:
57
125
  Enabled: false
58
- Style/SymbolArray:
126
+
127
+ Style/BlockDelimiters:
59
128
  Enabled: false
60
- Style/PreferredHashMethods:
61
- EnforcedStyle: verbose
62
- Metrics/ParameterLists:
129
+
130
+ Style/ClassAndModuleChildren:
63
131
  Enabled: false
64
- Layout/MultilineMethodCallIndentation:
65
- # Cannot be configured to indent relative to expression.
132
+
133
+ Style/ClassVars:
134
+ # Class vars are usually bad practice. Not universally.
66
135
  Enabled: false
67
- Style/RescueModifier:
68
- # I can see valid uses for this but they're far and few between.
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
- Lint/UnusedMethodArgument:
73
- AllowUnusedKeywordArguments: true
74
- IgnoreEmptyMethods: true
75
- Lint/EmptyWhen:
139
+
140
+ Style/Documentation:
76
141
  Enabled: false
77
- Lint/RaiseException:
78
- Enabled: true
79
- Lint/StructNewOverride:
142
+
143
+ Style/EmptyCaseCondition:
80
144
  Enabled: false
81
- Style/ClassAndModuleChildren:
145
+
146
+ Style/EmptyElse:
82
147
  Enabled: false
83
- Style/NonNilCheck:
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
- Style/HashEachMethods:
90
- Enabled: true
167
+
91
168
  Style/HashTransformKeys:
92
169
  Enabled: true
170
+
93
171
  Style/HashTransformValues:
94
172
  Enabled: true
95
- Layout/FirstArgumentIndentation:
96
- # This forbids indentation relative to the expression
97
- Enabled: false
98
- Style/SafeNavigation:
99
- Enabled: false
100
- Layout/EmptyLinesAroundExceptionHandlingKeywords:
173
+
174
+ Style/IfUnlessModifier:
101
175
  Enabled: false
102
- Layout/SpaceInsideRangeLiteral:
176
+
177
+ Style/KeywordParametersOrder:
103
178
  Enabled: false
104
- Style/SymbolProc:
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
- Lint/ParenthesesAsGroupedExpression:
187
+
188
+ Style/MultilineBlockChain:
107
189
  Enabled: false
108
- Style/EmptyElse:
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
- Style/TrailingCommaInArrayLiteral:
115
- EnforcedStyleForMultiline: consistent_comma
116
- Style/TrailingCommaInHashLiteral:
117
- EnforcedStyleForMultiline: comma
118
- Style/TrailingCommaInArguments:
119
- EnforcedStyleForMultiline: comma
120
- Style/SymbolLiteral:
121
- Enabled: false
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
- Naming/MethodParameterName:
211
+
212
+ Style/RedundantException:
125
213
  Enabled: false
126
- Naming/VariableNumber:
214
+
215
+ Style/RedundantReturn:
216
+ # allow redundant return keyword where appropriate to convey meaning
127
217
  Enabled: false
128
- Naming/PredicateName:
129
- NamePrefix: ['is_']
130
- Naming/RescuedExceptionsVariableName:
218
+
219
+ Style/RedundantSelf:
220
+ # allow redundant self keyword where appropriate to convey meaning
131
221
  Enabled: false
132
- Style/SingleLineMethods:
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
- Style/CommentedKeyword:
228
+
229
+ Style/SafeNavigation:
135
230
  Enabled: false
136
231
 
137
- Layout/HashAlignment:
138
- EnforcedHashRocketStyle:
139
- - table
140
- - key
141
- EnforcedColonStyle:
142
- - table
143
- - key
232
+ Style/SingleLineMethods:
233
+ Enabled: false
144
234
 
145
- Style/ClassVars:
146
- # Class vars are usually bad practice. Not universally.
235
+ Style/SpecialGlobalVars:
147
236
  Enabled: false
148
237
 
149
- Layout/MultilineMethodDefinitionBraceLayout:
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
- Lint/AmbiguousBlockAssociation:
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
- Lint/ShadowingOuterLocalVariable:
164
- # I like this rule, but can see arguments against it
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
- # Rules for formatting hash and method call braces: let's avoid these unless we
168
- # can find something unambiguously positive.
169
- Layout/MultilineMethodCallBraceLayout:
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
- Layout/MultilineHashBraceLayout:
277
+
278
+ Style/WhileUntilModifier:
172
279
  Enabled: false
173
- Layout/FirstHashElementIndentation:
174
- # This one in particular forbids what Emacs does by default for multi-line
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.6
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: 2020-07-14 00:00:00.000000000 Z
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