aroundhome_cops 4.2.0 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ad7cf8c4f2e3bc38092798cb7b402c496e97b17860ee3b54a93c7772b31064c2
4
- data.tar.gz: dfe328629f993ec3a742e71e93a6b9c633f7c115766c59b0dfa5b4c8774afc6d
3
+ metadata.gz: 7b3ed872a0065df50104dab56c15c0ec6112345943e4a87ccea027a956893aad
4
+ data.tar.gz: 6fb3f2a8f00d60815922347aec18555e06b5155af2610237f2d9223d72279c65
5
5
  SHA512:
6
- metadata.gz: 30f56dec47ec145cfd8456d663cff8fba04950510d526bd8d0f04b15e3943ddc89b15bd88215e17033349de4c55223e6fb31b6a48b8e41326d2a9c0e62432b81
7
- data.tar.gz: c2f76650583c22985cb277d35204f08ff32a89c54fdfa670c10b16bb72f8e47c5a85710891428948f51fa318bd18b544569cc3028e1420cd17f1851edc451bb8
6
+ metadata.gz: f33fcac4d0b2f1e2c2d2ddf599a0564e8e8e6a2a8c48ff2c63f46434380924ded040d93c279028d67eb9f9d490702cce0d4aef5006e0b7c71d1cf10fee5f6d2c
7
+ data.tar.gz: 25e603de2b851c365356fdaa260a165f3b455212952e48e2510b31bc3e976b9dc884cb90f03b4e1d23190d83bb1e4cdbbc0279360f38694301c4295be5507358
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.5.8
1
+ 2.6.9
data/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ ## Version 5.0.0
2
+ * Opt into all Rubocop offenses up until 1.35 & rspec 2.12
3
+ * Update minimum rubocop to 1.35
4
+ * Dropped support for ruby < 2.6
5
+
6
+ ## Version 4.3.1
7
+ * Disable updating to rubocop 1.31 as it will break our config.
8
+
9
+ ## Version 4.3.0
10
+ * Disable `RSpec/PredicateMatcher` due to false positives
11
+
1
12
  ## Version 4.2.0
2
13
  * Add rubocop-rake as a dependency, to enforce better specs
3
14
 
@@ -18,9 +18,9 @@ Gem::Specification.new do |spec|
18
18
  .reject { |f| f.match(%r{^spec/}) }
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.required_ruby_version = '>= 2.5.0'
21
+ spec.required_ruby_version = '>= 2.6.0'
22
22
 
23
- spec.add_dependency 'rubocop', '~> 1.22'
23
+ spec.add_dependency 'rubocop', '~> 1.35'
24
24
  spec.add_dependency 'rubocop-rake', '~> 0.6'
25
25
  spec.add_dependency 'rubocop-rspec', '~> 2.5'
26
26
  end
data/default.yml CHANGED
@@ -53,7 +53,7 @@ Layout/LineLength:
53
53
  # long, since they are less comparable to methods and more comparable to
54
54
  # modules/classes.
55
55
  Metrics/BlockLength:
56
- IgnoredMethods:
56
+ AllowedMethods:
57
57
  - context
58
58
  - describe
59
59
  - namespace
@@ -160,6 +160,24 @@ RSpec/NamedSubject:
160
160
  RSpec/NestedGroups:
161
161
  Max: 7
162
162
 
163
+ # While well intentioned at teaching about the existence of be_something matchers
164
+ # in RSpec, this one produces false positives on methods such as
165
+ #
166
+ # expect(hash.key?('foo')).to be_truthy
167
+ #
168
+ # Where it suggests to change towards:
169
+ #
170
+ # expect(hash).to be_key('foo')
171
+ #
172
+ # While this works, it is less readable. The hash IS NOT the key, but it HAS the key.
173
+ # Similar mistakes happen for other methods (e.g. File.exist?).
174
+ RSpec/PredicateMatcher:
175
+ Enabled: false
176
+
177
+ # While in general 2FA is a good idea, adding 2FA to CI/CD is a difficulty.
178
+ Gemspec/RequireMFA: # new in 1.23
179
+ Enabled: false
180
+
163
181
  # ----------------- Rubocop-forced enablements --------------
164
182
 
165
183
  # Since version 0.80 rubocop wants to cause fewer breaking changes by new cops.
@@ -168,8 +186,6 @@ RSpec/NestedGroups:
168
186
  # them below.
169
187
  # Disabled cops will appear above with a comment explaining disablement.
170
188
 
171
- Gemspec/DateAssignment: # (new in 1.10)
172
- Enabled: true
173
189
  Layout/SpaceBeforeBrackets: # (new in 1.7)
174
190
  Enabled: true
175
191
  Lint/AmbiguousAssignment: # (new in 1.7)
@@ -258,6 +274,50 @@ Style/MultilineInPatternThen: # (new in 1.16)
258
274
  Enabled: true
259
275
  Style/QuotedSymbols: # (new in 1.16)
260
276
  Enabled: true
277
+ Gemspec/DeprecatedAttributeAssignment: # new in 1.30
278
+ Enabled: true
279
+ Layout/LineContinuationLeadingSpace: # new in 1.31
280
+ Enabled: true
281
+ Layout/LineContinuationSpacing: # new in 1.31
282
+ Enabled: true
283
+ Lint/ConstantOverwrittenInRescue: # new in 1.31
284
+ Enabled: true
285
+ Lint/NonAtomicFileOperation: # new in 1.31
286
+ Enabled: true
287
+ Lint/RefinementImportMethods: # new in 1.27
288
+ Enabled: true
289
+ Lint/RequireRangeParentheses: # new in 1.32
290
+ Enabled: true
291
+ Lint/UselessRuby2Keywords: # new in 1.23
292
+ Enabled: true
293
+ Naming/BlockForwarding: # new in 1.24
294
+ Enabled: true
295
+ Security/CompoundHash: # new in 1.28
296
+ Enabled: true
297
+ Style/EmptyHeredoc: # new in 1.32
298
+ Enabled: true
299
+ Style/EnvHome: # new in 1.29
300
+ Enabled: true
301
+ Style/FetchEnvVar: # new in 1.28
302
+ Enabled: true
303
+ Style/FileRead: # new in 1.24
304
+ Enabled: true
305
+ Style/FileWrite: # new in 1.24
306
+ Enabled: true
307
+ Style/MagicCommentFormat: # new in 1.35
308
+ Enabled: true
309
+ Style/MapCompactWithConditionalBlock: # new in 1.30
310
+ Enabled: true
311
+ Style/MapToHash: # new in 1.24
312
+ Enabled: true
313
+ Style/NestedFileDirname: # new in 1.26
314
+ Enabled: true
315
+ Style/ObjectThen: # new in 1.28
316
+ Enabled: true
317
+ Style/OpenStructUse: # new in 1.23
318
+ Enabled: true
319
+ Style/RedundantInitialize: # new in 1.27
320
+ Enabled: true
261
321
 
262
322
  # ----------------- Rubocop-Rspec forced enablements --------------
263
323
  RSpec/ExcessiveDocstringSpacing: # (new in 2.5)
@@ -268,3 +328,17 @@ RSpec/Rails/AvoidSetupHook: # (new in 2.4)
268
328
  Enabled: true
269
329
  RSpec/SubjectDeclaration: # (new in 2.5)
270
330
  Enabled: true
331
+ RSpec/BeEq: # new in 2.9.0
332
+ Enabled: true
333
+ RSpec/BeNil: # new in 2.9.0
334
+ Enabled: true
335
+ RSpec/ChangeByZero: # new in 2.11.0
336
+ Enabled: true
337
+ RSpec/VerifiedDoubleReference: # new in 2.10.0
338
+ Enabled: true
339
+ RSpec/Capybara/SpecificMatcher: # new in 2.12
340
+ Enabled: true
341
+ RSpec/FactoryBot/SyntaxMethods: # new in 2.7
342
+ Enabled: true
343
+ RSpec/Rails/HaveHttpStatus: # new in 2.12
344
+ Enabled: true
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AroundhomeCops
4
- VERSION = '4.2.0'
4
+ VERSION = '5.0.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aroundhome_cops
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.0
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Sandbrink
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-14 00:00:00.000000000 Z
11
+ date: 2022-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.22'
19
+ version: '1.35'
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: '1.22'
26
+ version: '1.35'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -80,14 +80,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - ">="
82
82
  - !ruby/object:Gem::Version
83
- version: 2.5.0
83
+ version: 2.6.0
84
84
  required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - ">="
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  requirements: []
90
- rubygems_version: 3.2.22
90
+ rubygems_version: 3.3.7
91
91
  signing_key:
92
92
  specification_version: 4
93
93
  summary: Dependency and configuration for rubocop.