rubocop-iknow 0.0.7 → 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 +184 -109
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cab74c8ba8cf2dc6274a65203c0e27ab58e687f038c5a8cdd1b2e1b692fd2a94
4
- data.tar.gz: 119c8bc5fa399b06873e550e124f8c5ae5c5043483f8f85297f459fb17dcbbd5
3
+ metadata.gz: 3b70c58c1e430d7c9434c09a3a1141725fed4a204c4cad6ea90484587be54e3b
4
+ data.tar.gz: a1f5fcdb9f6f3d07ea039c672a3c6afc700a88bae8109041d90014491580ac7b
5
5
  SHA512:
6
- metadata.gz: 6baa63db33e31ee914f8f03df5e5a75867ca0b19dd8bdbb2de79dc94bbb1b81f1c7350aa2c016c7e6d709ff0fa641361be50f64cc9dc2f31b0b3151f92051eaf
7
- data.tar.gz: 9bb7effb6f4176f85e285de8ee675ae9ef2bf3d274e4cc7b7f11f0e6c6954ded24f98d2abfcbc1700ad0b6a486fe8e05e76dd83a1631e78c5b2cb841c2fd927b
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
- Metrics/BlockLength:
9
- Enabled: false
10
- Style/AsciiComments:
11
- Enabled: false
12
- Style/Documentation:
28
+
29
+ Layout/MultilineHashBraceLayout:
13
30
  Enabled: false
14
- 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.
15
35
  Enabled: false
16
- Style/TernaryParentheses:
36
+
37
+ Layout/MultilineMethodCallIndentation:
38
+ # Cannot be configured to indent relative to expression.
17
39
  Enabled: false
18
- Style/RedundantReturn:
40
+
41
+ Layout/MultilineMethodDefinitionBraceLayout:
42
+ # None of their options are lovely
19
43
  Enabled: false
20
- Style/RedundantSelf:
44
+
45
+ Layout/SpaceInsideRangeLiteral:
21
46
  Enabled: false
22
- Style/GuardClause:
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
- Style/IfUnlessModifier:
52
+
53
+ Lint/EmptyWhen:
25
54
  Enabled: false
26
- Style/WhileUntilModifier:
55
+
56
+ Lint/ParenthesesAsGroupedExpression:
27
57
  Enabled: false
28
- Style/RaiseArgs:
29
- EnforcedStyle: compact
30
- 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:
31
67
  Enabled: false
32
- Style/SpecialGlobalVars:
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
- Style/EmptyCaseCondition:
78
+
79
+ Metrics/BlockLength:
35
80
  Enabled: false
36
- Style/RedundantCondition:
81
+
82
+ Metrics/ClassLength:
37
83
  Enabled: false
38
- Metrics/AbcSize:
84
+
85
+ Metrics/CyclomaticComplexity:
39
86
  Enabled: false
87
+
40
88
  Metrics/MethodLength:
41
89
  Enabled: false
42
- Metrics/CyclomaticComplexity:
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
- Metrics/ClassLength:
99
+
100
+ Naming/AccessorMethodName:
47
101
  Enabled: false
48
- Metrics/ModuleLength:
102
+
103
+ Naming/MethodParameterName:
49
104
  Enabled: false
50
- Style/Lambda:
105
+
106
+ Naming/PredicateName:
107
+ NamePrefix: [is_]
108
+
109
+ Naming/RescuedExceptionsVariableName:
51
110
  Enabled: false
52
- Style/LambdaCall:
111
+
112
+ Naming/VariableNumber:
53
113
  Enabled: false
54
- Style/MultilineBlockChain:
114
+
115
+ Style/AccessorGrouping:
55
116
  Enabled: false
56
- Style/WordArray:
117
+
118
+ Style/AsciiComments:
57
119
  Enabled: false
58
- Style/SymbolArray:
120
+
121
+ Style/BlockDelimiters:
59
122
  Enabled: false
60
- Style/PreferredHashMethods:
61
- EnforcedStyle: verbose
62
- Metrics/ParameterLists:
123
+
124
+ Style/ClassAndModuleChildren:
63
125
  Enabled: false
64
- Layout/MultilineMethodCallIndentation:
65
- # Cannot be configured to indent relative to expression.
126
+
127
+ Style/ClassVars:
128
+ # Class vars are usually bad practice. Not universally.
66
129
  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
130
+
131
+ Style/CommentedKeyword:
71
132
  Enabled: false
72
- Style/ExplicitBlockArgument:
73
- # This goes too far by demanding expensive block allocation always
133
+
134
+ Style/Documentation:
74
135
  Enabled: false
75
- Lint/UnusedBlockArgument:
76
- AllowUnusedKeywordArguments: true
77
- Lint/UnusedMethodArgument:
78
- AllowUnusedKeywordArguments: true
79
- IgnoreEmptyMethods: true
80
- Lint/EmptyWhen:
136
+
137
+ Style/EmptyCaseCondition:
81
138
  Enabled: false
82
- Lint/RaiseException:
83
- Enabled: true
84
- Lint/StructNewOverride:
139
+
140
+ Style/EmptyElse:
85
141
  Enabled: false
86
- Style/ClassAndModuleChildren:
142
+
143
+ Style/ExplicitBlockArgument:
144
+ # This goes too far by demanding expensive block allocation always
87
145
  Enabled: false
88
- Style/NonNilCheck:
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
- Style/HashEachMethods:
95
- Enabled: true
158
+
96
159
  Style/HashTransformKeys:
97
160
  Enabled: true
161
+
98
162
  Style/HashTransformValues:
99
163
  Enabled: true
100
- Layout/FirstArgumentIndentation:
101
- # This forbids indentation relative to the expression
102
- Enabled: false
103
- Style/SafeNavigation:
104
- Enabled: false
105
- Layout/EmptyLinesAroundExceptionHandlingKeywords:
164
+
165
+ Style/IfUnlessModifier:
106
166
  Enabled: false
107
- Layout/SpaceInsideRangeLiteral:
167
+
168
+ Style/KeywordParametersOrder:
108
169
  Enabled: false
109
- Style/SymbolProc:
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
- Lint/ParenthesesAsGroupedExpression:
178
+
179
+ Style/MultilineBlockChain:
112
180
  Enabled: false
113
- Style/EmptyElse:
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
- Style/TrailingCommaInArrayLiteral:
120
- EnforcedStyleForMultiline: consistent_comma
121
- Style/TrailingCommaInHashLiteral:
122
- EnforcedStyleForMultiline: comma
123
- Style/TrailingCommaInArguments:
124
- EnforcedStyleForMultiline: comma
125
- Style/TrailingUnderscoreVariable:
126
- # I think this does more harm than good by hiding the array destructuring
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
- Style/AccessorGrouping:
199
+
200
+ Style/RedundantException:
135
201
  Enabled: false
136
- Naming/AccessorMethodName:
202
+
203
+ Style/RedundantReturn:
204
+ # allow redundant return keyword where appropriate to convey meaning
137
205
  Enabled: false
138
- Naming/MethodParameterName:
206
+
207
+ Style/RedundantSelf:
208
+ # allow redundant self keyword where appropriate to convey meaning
139
209
  Enabled: false
140
- Naming/VariableNumber:
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
- Naming/PredicateName:
143
- NamePrefix: ['is_']
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
- Layout/HashAlignment:
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
- Layout/MultilineMethodDefinitionBraceLayout:
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
- Lint/AmbiguousBlockAssociation:
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
- Lint/ShadowingOuterLocalVariable:
178
- # 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:
179
245
  Enabled: true
246
+ EnforcedStyle: require_parentheses_when_complex
180
247
 
181
- # Rules for formatting hash and method call braces: let's avoid these unless we
182
- # can find something unambiguously positive.
183
- 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
184
259
  Enabled: false
185
- Layout/MultilineHashBraceLayout:
260
+
261
+ Style/WhileUntilModifier:
186
262
  Enabled: false
187
- Layout/FirstHashElementIndentation:
188
- # This one in particular forbids what Emacs does by default for multi-line
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.7
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