kpn-style 0.1.7 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f582fdca38e37defa1bc1b852efc6ef4a8d0d2daa2c87a074f39adbe993c72bc
4
- data.tar.gz: fcb7e05ca6b68895fbec45c69dd184cf9f7aec09537470556d0905f0df669987
3
+ metadata.gz: 652adc455105950df12befa7fe04a6dd079e6e52e746d919c3a659b8947fae8c
4
+ data.tar.gz: c025a4a56ba08b1d91faa31c496f2d43e150c835a99435e189f10cce1429418d
5
5
  SHA512:
6
- metadata.gz: e24b97e58feca841d3fab51cd942483d21a9010b23463dcadbf9f5079db50baf87141354d3fdd1a8acf9f59dbf912c51a263b656ffd58b8af4fff1813c9090f5
7
- data.tar.gz: 03ff11eba951d267cff60e4ded52c8b501c62b506caef6ffcd8c65848f37e9ad62ea88dd954264b10a88b122b1005960428e6a69b9c9ecec15207dc8a2902252
6
+ metadata.gz: e87250f9a5937d51afcb2d04e33310733e782d620ffe544abf6852d91bf5fd4a6ff16cdda43e911d7b9975981e1e6a72307e904023ae11709d1870c938c49bd7
7
+ data.tar.gz: 65f535cd264ca637781915c9f1c4a92f8e96c5b6a86bf5014e31aa9830d8877b09f3e6b65983b1b46e55e241bb5aeb6974732808167076848079f3339ac3caae
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = 'kpn-style'
6
- spec.version = '0.1.7'
6
+ spec.version = '0.1.8'
7
7
  spec.authors = ['kpn']
8
8
  spec.email = ['noreply@kpn.com']
9
9
 
@@ -27,6 +27,6 @@ Gem::Specification.new do |spec|
27
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
28
  spec.require_paths = ['lib']
29
29
 
30
- spec.add_dependency 'rubocop', '~> 0.89'
31
- spec.add_dependency 'rubocop-rspec', '~> 1.43'
30
+ spec.add_dependency 'rubocop', '~> 0.93.1'
31
+ spec.add_dependency 'rubocop-rspec', '~> 1.44.1'
32
32
  end
@@ -1,3 +1,3 @@
1
1
  module Kpn::Style
2
- VERSION = '0.1.6'.freeze
2
+ VERSION = '0.1.8'.freeze
3
3
  end
@@ -13,6 +13,9 @@ AllCops:
13
13
  - pkg/**/*
14
14
  - spec/fixtures/**/*
15
15
  - vendor/**/*
16
+ Layout/BeginEndAlignment: # (new in 0.91)
17
+ Description: checks whether the end keyword of begin is aligned properly.
18
+ Enabled: true
16
19
  Layout/LineLength:
17
20
  Description: People have wide screens, use them.
18
21
  Max: 240
@@ -147,21 +150,36 @@ Layout/SpaceAroundMethodCallOperator:
147
150
  Lint/BinaryOperatorWithIdenticalOperands:
148
151
  Description: This cop checks for places where binary operator has identical operands.
149
152
  Enabled: true
153
+ Lint/ConstantDefinitionInBlock:
154
+ Description: Do not define constants within a block.
155
+ Enabled: true
150
156
  Lint/DeprecatedOpenSSLConstant:
151
157
  Description: Don't use algorithm constants for `OpenSSL::Cipher` and `OpenSSL::Digest`.
152
158
  Enabled: true
153
159
  Lint/DuplicateElsifCondition:
154
160
  Description: Do not repeat conditions used in if `elsif`.
155
161
  Enabled: true
162
+ Lint/DuplicateRequire:
163
+ Description: Check for duplicate `require`s and `require_relative`s.
164
+ Enabled: true
156
165
  Lint/DuplicateRescueException:
157
166
  Description: Checks that there are no repeated exceptions used in `rescue` expressions.
158
167
  Enabled: true
159
168
  Lint/EmptyConditionalBody:
160
169
  Description: This cop checks for the presence of `if`, `elsif` and `unless` branches without a body.
161
170
  Enabled: true
171
+ Lint/EmptyFile:
172
+ Description: Enforces that Ruby source files are not empty.
173
+ Enabled: true
162
174
  Lint/FloatComparison:
163
175
  Description: Checks for the presence of precise comparison of floating point numbers.
164
176
  Enabled: true
177
+ Lint/HashCompareByIdentity:
178
+ Description: Prefer using `Hash#compare_by_identity` than using `object_id` for keys.
179
+ Enabled: true
180
+ Lint/IdentityComparison:
181
+ Description: Prefer `equal?` over `==` when comparing `object_id`.
182
+ Enabled: true
165
183
  Lint/MissingSuper:
166
184
  Description: >-
167
185
  This cop checks for the presence of constructors and lifecycle callbacks
@@ -176,6 +194,9 @@ Lint/OutOfRangeRegexpRef:
176
194
  Lint/RaiseException:
177
195
  Description: Checks for `raise` or `fail` statements which are raising `Exception` class.
178
196
  Enabled: true
197
+ Lint/RedundantSafeNavigation:
198
+ Description: Checks for redundant safe navigation calls.
199
+ Enabled: true
179
200
  Lint/SelfAssignment:
180
201
  Description: Checks for self-assignments.
181
202
  Enabled: true
@@ -185,9 +206,21 @@ Lint/StructNewOverride:
185
206
  Lint/TopLevelReturnWithArgument:
186
207
  Description: This cop detects top level return statements with argument.
187
208
  Enabled: true
209
+ Lint/TrailingCommaInAttributeDeclaration:
210
+ Description: This cop checks for trailing commas in attribute declarations.
211
+ Enabled: true
188
212
  Lint/UnreachableLoop:
189
213
  Description: This cop checks for loops that will have at most one iteration.
190
214
  Enabled: true
215
+ Lint/UselessMethodDefinition:
216
+ Description: Checks for useless method definitions.
217
+ Enabled: true
218
+ Lint/UselessTimes:
219
+ Description: Checks for useless `Integer#times` calls.
220
+ Enabled: true
221
+ RSpec/StubbedMock:
222
+ Description: Checks that message expectations do not have a configured response.
223
+ Enabled: true
191
224
  Style/AccessorGrouping:
192
225
  Description: Checks for grouping of accessors in `class` and `module` bodies.
193
226
  Enabled: true
@@ -204,6 +237,14 @@ Style/BisectedAttrAccessor:
204
237
  Style/CaseLikeIf:
205
238
  Description: This cop identifies places where `if-elsif` constructions can be replaced with `case-when`.
206
239
  Enabled: true
240
+ Style/ClassEqualityComparison:
241
+ Description: Enforces the use of `Object#instance_of?` instead of class comparison for equality.
242
+ Enabled: true
243
+ Style/CombinableLoops:
244
+ Description: >-
245
+ Checks for places where multiple consecutive loops over the same data
246
+ can be combined into a single loop.
247
+ Enabled: true
207
248
  Style/ExplicitBlockArgument:
208
249
  Description: >-
209
250
  Consider using explicit block argument to avoid writing block literal
@@ -234,6 +275,9 @@ Style/HashTransformKeys:
234
275
  Style/HashTransformValues:
235
276
  Description: Prefer `transform_values` over `each_with_object`, `map`, or `to_h`.
236
277
  Enabled: true
278
+ Style/KeywordParametersOrder:
279
+ Description: Enforces that optional keyword parameters are placed at the end of the parameters list.
280
+ Enabled: true
237
281
  Style/OptionalBooleanParameter:
238
282
  Description: Use keyword arguments when defining method with boolean argument.
239
283
  Enabled: true
@@ -256,12 +300,20 @@ Style/RedundantRegexpCharacterClass:
256
300
  Style/RedundantRegexpEscape:
257
301
  Description: Checks for redundant escapes in Regexps.
258
302
  Enabled: false
303
+ Style/RedundantSelfAssignment:
304
+ Description: Checks for places where redundant assignments are made for in place modification methods.
305
+ Enabled: true
259
306
  Style/SingleArgumentDig:
260
307
  Description: Avoid using single argument dig method.
261
308
  Enabled: true
262
309
  Style/SlicingWithRange:
263
310
  Description: Checks array slicing is done with endless ranges when suitable.
264
311
  Enabled: true
312
+ Style/SoleNestedConditional:
313
+ Description: >-
314
+ Finds sole nested conditional nodes
315
+ which can be merged into outer conditional node.
316
+ Enabled: true
265
317
  Style/StringConcatenation:
266
318
  Description: Checks for places where string concatenation can be replaced with string interpolation.
267
319
  Enabled: true
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kpn-style
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - kpn
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-14 00:00:00.000000000 Z
11
+ date: 2020-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.89'
19
+ version: 0.93.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.89'
26
+ version: 0.93.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.43'
33
+ version: 1.44.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.43'
40
+ version: 1.44.1
41
41
  description:
42
42
  email:
43
43
  - noreply@kpn.com