rubocop-iknow 0.0.4 → 0.0.8

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 +187 -95
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1177e1c7e8e5486f16a69c1e37eec951d5413c4e7804f0d87658a34296f88907
4
- data.tar.gz: ea9419e5a41663871b2076df7be5eb7f1ac02a3ad93298641a30c27f321a3e42
3
+ metadata.gz: 3b70c58c1e430d7c9434c09a3a1141725fed4a204c4cad6ea90484587be54e3b
4
+ data.tar.gz: a1f5fcdb9f6f3d07ea039c672a3c6afc700a88bae8109041d90014491580ac7b
5
5
  SHA512:
6
- metadata.gz: a796124e0beed14efa6b3662f158de01484f8f5a8b428b3e53f4d7891752ead24555e3a4ff294b3d9680fe6bb7344462652e26243e220d5e0b7c974fd62a88ce
7
- data.tar.gz: d059bfdc3f02b2240e20da2062076dff26121e44b473133cc3616d60f2e6fb6829f6dfeda8d6b89162d322393ce9b113cd332e84eddb2ee0c4e7f28b1fbf60f0
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
- Metrics/BlockLength:
8
- Enabled: false
9
- Style/AsciiComments:
10
- Enabled: false
11
- Style/Documentation:
28
+
29
+ Layout/MultilineHashBraceLayout:
12
30
  Enabled: false
13
- Style/BlockDelimiters:
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
- Style/TernaryParentheses:
36
+
37
+ Layout/MultilineMethodCallIndentation:
38
+ # Cannot be configured to indent relative to expression.
16
39
  Enabled: false
17
- Style/RedundantReturn:
40
+
41
+ Layout/MultilineMethodDefinitionBraceLayout:
42
+ # None of their options are lovely
18
43
  Enabled: false
19
- Style/RedundantSelf:
44
+
45
+ Layout/SpaceInsideRangeLiteral:
20
46
  Enabled: false
21
- Style/GuardClause:
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
- Style/IfUnlessModifier:
52
+
53
+ Lint/EmptyWhen:
24
54
  Enabled: false
25
- Style/WhileUntilModifier:
55
+
56
+ Lint/ParenthesesAsGroupedExpression:
26
57
  Enabled: false
27
- Style/RaiseArgs:
28
- EnforcedStyle: compact
29
- Style/RedundantException:
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
- Style/SpecialGlobalVars:
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
- Style/EmptyCaseCondition:
78
+
79
+ Metrics/BlockLength:
34
80
  Enabled: false
35
- Style/RedundantCondition:
81
+
82
+ Metrics/ClassLength:
36
83
  Enabled: false
37
- Metrics/AbcSize:
84
+
85
+ Metrics/CyclomaticComplexity:
38
86
  Enabled: false
87
+
39
88
  Metrics/MethodLength:
40
89
  Enabled: false
41
- Metrics/CyclomaticComplexity:
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
- Metrics/ClassLength:
99
+
100
+ Naming/AccessorMethodName:
46
101
  Enabled: false
47
- Metrics/ModuleLength:
102
+
103
+ Naming/MethodParameterName:
48
104
  Enabled: false
49
- Style/Lambda:
105
+
106
+ Naming/PredicateName:
107
+ NamePrefix: [is_]
108
+
109
+ Naming/RescuedExceptionsVariableName:
50
110
  Enabled: false
51
- Style/LambdaCall:
111
+
112
+ Naming/VariableNumber:
52
113
  Enabled: false
53
- Style/MultilineBlockChain:
114
+
115
+ Style/AccessorGrouping:
54
116
  Enabled: false
55
- Style/WordArray:
117
+
118
+ Style/AsciiComments:
56
119
  Enabled: false
57
- Style/SymbolArray:
120
+
121
+ Style/BlockDelimiters:
58
122
  Enabled: false
59
- Style/PreferredHashMethods:
60
- EnforcedStyle: verbose
61
- Metrics/ParameterLists:
123
+
124
+ Style/ClassAndModuleChildren:
62
125
  Enabled: false
63
- Layout/MultilineMethodCallIndentation:
64
- # Cannot be configured to indent relative to expression.
126
+
127
+ Style/ClassVars:
128
+ # Class vars are usually bad practice. Not universally.
65
129
  Enabled: false
66
- Style/RescueModifier:
67
- # I can see valid uses for this but they're far and few between.
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
- Lint/UnusedMethodArgument:
72
- AllowUnusedKeywordArguments: true
73
- IgnoreEmptyMethods: true
74
- Lint/EmptyWhen:
133
+
134
+ Style/Documentation:
75
135
  Enabled: false
76
- Lint/RaiseException:
77
- Enabled: true
78
- Lint/StructNewOverride:
136
+
137
+ Style/EmptyCaseCondition:
79
138
  Enabled: false
80
- Style/ClassAndModuleChildren:
139
+
140
+ Style/EmptyElse:
81
141
  Enabled: false
82
- Style/NonNilCheck:
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
- Style/HashEachMethods:
89
- Enabled: true
158
+
90
159
  Style/HashTransformKeys:
91
160
  Enabled: true
161
+
92
162
  Style/HashTransformValues:
93
163
  Enabled: true
94
- Layout/FirstArgumentIndentation:
95
- # This forbids indentation relative to the expression
96
- Enabled: false
97
- Style/SafeNavigation:
98
- Enabled: false
99
- Layout/EmptyLinesAroundExceptionHandlingKeywords:
164
+
165
+ Style/IfUnlessModifier:
100
166
  Enabled: false
101
- Layout/SpaceInsideRangeLiteral:
167
+
168
+ Style/KeywordParametersOrder:
102
169
  Enabled: false
103
- Style/SymbolProc:
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
- Lint/ParenthesesAsGroupedExpression:
178
+
179
+ Style/MultilineBlockChain:
106
180
  Enabled: false
107
- Style/EmptyElse:
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
- Style/TrailingCommaInArrayLiteral:
114
- EnforcedStyleForMultiline: consistent_comma
115
- Style/TrailingCommaInHashLiteral:
116
- EnforcedStyleForMultiline: comma
117
- Style/TrailingCommaInArguments:
118
- EnforcedStyleForMultiline: comma
119
- Style/SymbolLiteral:
190
+
191
+ Style/PreferredHashMethods:
192
+ EnforcedStyle: verbose
193
+
194
+ Style/RaiseArgs:
195
+ EnforcedStyle: compact
196
+
197
+ Style/RedundantCondition:
120
198
  Enabled: false
121
- Naming/AccessorMethodName:
199
+
200
+ Style/RedundantException:
122
201
  Enabled: false
123
- Naming/MethodParameterName:
202
+
203
+ Style/RedundantReturn:
204
+ # allow redundant return keyword where appropriate to convey meaning
124
205
  Enabled: false
125
- Naming/VariableNumber:
206
+
207
+ Style/RedundantSelf:
208
+ # allow redundant self keyword where appropriate to convey meaning
126
209
  Enabled: false
127
- Naming/PredicateName:
128
- NamePrefix: ['is_']
129
- Style/SingleLineMethods:
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
- Style/CommentedKeyword:
216
+
217
+ Style/SafeNavigation:
132
218
  Enabled: false
133
219
 
134
- Layout/HashAlignment:
135
- EnforcedHashRocketStyle:
136
- - table
137
- - key
138
- EnforcedColonStyle:
139
- - table
140
- - key
220
+ Style/SingleLineMethods:
221
+ Enabled: false
141
222
 
142
- Style/ClassVars:
143
- # Class vars are usually bad practice. Not universally.
223
+ Style/SpecialGlobalVars:
144
224
  Enabled: false
145
225
 
146
- Layout/MultilineMethodDefinitionBraceLayout:
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
- Lint/AmbiguousBlockAssociation:
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
- Lint/ShadowingOuterLocalVariable:
161
- # I like this rule, but can see arguments against it
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
- # Rules for formatting hash and method call braces: let's avoid these unless we
165
- # can find something unambiguously positive.
166
- Layout/MultilineMethodCallBraceLayout:
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
- Layout/MultilineHashBraceLayout:
260
+
261
+ Style/WhileUntilModifier:
169
262
  Enabled: false
170
- Layout/FirstHashElementIndentation:
171
- # This one in particular forbids what Emacs does by default for multi-line
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
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-03-03 00:00:00.000000000 Z
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