aroundhome_cops 6.0.1 → 7.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: 517552a00778127bcd6d59387e3bf7b37b9aaf5ebef291b955548413ceba9b6e
4
- data.tar.gz: 83531d7101e998e0d121f985dc36d224a145f1bb25742b844811aa856515cacf
3
+ metadata.gz: e945f7b9bf460da0613d77d0f5a216bb846915fe638bf76e9e1645fa76b4a6b6
4
+ data.tar.gz: c97a61b1641b38fd7b8de97c9a87ddf3bb95944eb94c7ae4912e675688cb5171
5
5
  SHA512:
6
- metadata.gz: 78161b654b59f80b7c96ee975910ba7ecb9aba9037035cf9486e721e21195dba76fb1397987185108920957e2b060a4735d35ab84c6cb83e79e279160b96e65d
7
- data.tar.gz: 7462aa9cdb696eafd1bb4b1fa2f7637bf872d37062694c21c21dd19073b2e819a37f44e807de38d61086c5f8d9c4aa301cb361205b45bb72b49975b56108a68a
6
+ metadata.gz: 89cd014f0e01d75a1387ace3b87b37f1ddc85becf64805249311d470aedcf767f83ec2e8fa064f660a91a57ee24145f2ff44ed67c8621ef7241b584838b51b55
7
+ data.tar.gz: 59b752ad8bdc0ad91c251316984378bb3c635d0c1996093e91b1e8569e4855b9c75f88821663b7183d4eaf3fdabc4e735de9f88885ff84123b8bda7e0608e5a7
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## Version 7.0.0 (2024-06-14)
2
+
3
+ * No longer suggest rubocop-factory_bot
4
+ * No longer force fixes after updates for older migrations
5
+ * Update underlying rubocop to at least 1.64
6
+ * Opt into all Rubocop offenses up until 1.64
7
+ * Update underlying rubocop-rspec to at least 2.30
8
+ * Opt into all Rubocop-Rspec offenses up until 2.30
9
+ * Add rubocop-performance as a dependency, to enforce more performant code
10
+
1
11
  ## Version 6.0.1
2
12
 
3
13
  * Fix deprecation warnings and multiple defined default cops
@@ -20,7 +20,8 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.required_ruby_version = '>= 2.7.0'
22
22
 
23
- spec.add_dependency 'rubocop', '~> 1.63'
23
+ spec.add_dependency 'rubocop', '~> 1.64'
24
+ spec.add_dependency 'rubocop-performance', '~> 1.21'
24
25
  spec.add_dependency 'rubocop-rake', '~> 0.6'
25
- spec.add_dependency 'rubocop-rspec', '~> 2.29'
26
+ spec.add_dependency 'rubocop-rspec', '~> 2.30'
26
27
  end
data/default.yml CHANGED
@@ -1,30 +1,29 @@
1
1
  require:
2
+ - rubocop-performance
2
3
  - rubocop-rspec
3
4
  - rubocop-rake
4
5
 
5
6
  AllCops:
6
7
  Exclude:
7
- - 'bin/**/*'
8
- - 'db/schema.rb'
9
- - 'doc/**/*'
10
- - 'docker_app/**/*'
11
- - 'Guardfile'
12
- - 'tmp/**/*'
13
- - 'vendor/**/*'
14
- - 'playground/**/*'
15
- - 'public/**/*'
16
- - 'node_modules/**/*'
17
- - 'db/migrate/200*.rb'
18
- - 'db/migrate/2010*.rb'
19
- - 'db/migrate/2011*.rb'
20
- - 'db/migrate/2012*.rb'
21
- - 'db/migrate/2013*.rb'
22
- - 'db/migrate/2014*.rb'
23
- - 'db/migrate/2015*.rb'
24
- - 'db/migrate/2016*.rb'
25
- - 'db/migrate/2017*.rb'
8
+ - "bin/**/*"
9
+ - "db/schema.rb"
10
+ - "doc/**/*"
11
+ - "docker_app/**/*"
12
+ - "Guardfile"
13
+ - "tmp/**/*"
14
+ - "vendor/**/*"
15
+ - "playground/**/*"
16
+ - "public/**/*"
17
+ - "node_modules/**/*"
18
+ - "db/migrate/200*.rb"
19
+ - "db/migrate/201*.rb"
20
+ - "db/migrate/2020*.rb"
21
+ - "db/migrate/2021*.rb"
22
+ - "db/migrate/2022*.rb"
23
+ - "db/migrate/2023*.rb"
26
24
  SuggestExtensions:
27
25
  rubocop-rails: false
26
+ rubocop-factory_bot: false
28
27
 
29
28
  # While we like to write blocks like the following
30
29
  # expect { add_special_project }.not_to change { SpecialProject.count }
@@ -33,21 +32,20 @@ AllCops:
33
32
  # expect { add_special_project }.not_to(change { SpecialProject.count })
34
33
  Lint/AmbiguousBlockAssociation:
35
34
  Exclude:
36
- - 'spec/**/*'
35
+ - "spec/**/*"
37
36
 
38
37
  # Models can have a bunch of attributes which lead to long methods and high
39
38
  # complexity values. However, these methods are still very readable because they
40
39
  # usually have a lot of repetition.
41
40
  Metrics:
42
41
  Exclude:
43
- - 'db/migrate/*.rb'
42
+ - "db/migrate/*.rb"
44
43
 
45
44
  # See above (Metrics). This cop was previously called Metrics/LineLength
46
45
  # and therefore disabled as well for migrations.
47
46
  Layout/LineLength:
48
47
  Exclude:
49
- - 'db/migrate/*.rb'
50
-
48
+ - "db/migrate/*.rb"
51
49
 
52
50
  # We need to configure exemptions for blocks that we generally accept to be
53
51
  # long, since they are less comparable to methods and more comparable to
@@ -64,10 +62,10 @@ Metrics/BlockLength:
64
62
  - xcontext
65
63
  - xdescribe
66
64
  Exclude:
67
- - 'config/environments/*.rb' # instead of excluding all :configure methods
68
- - 'config/routes.rb'
69
- - 'spec/spec_helper.rb' # instead of excluding all :configure methods
70
- - '*.gemspec' # a gemspec could easily have more than the 25 lines limit
65
+ - "config/environments/*.rb" # instead of excluding all :configure methods
66
+ - "config/routes.rb"
67
+ - "spec/spec_helper.rb" # instead of excluding all :configure methods
68
+ - "*.gemspec" # a gemspec could easily have more than the 25 lines limit
71
69
 
72
70
  # Increase from rubocops default limit of 10 lines.
73
71
  # The idea of increasing the default limit is to reduce the "false alarm rate"
@@ -88,7 +86,7 @@ Style/Documentation:
88
86
  Style/Encoding:
89
87
  Enabled: true
90
88
  Exclude:
91
- - '*.gemspec'
89
+ - "*.gemspec"
92
90
 
93
91
  # Ruby 2.3 introduced optional automatic freezing of string literals
94
92
  # This might become default in future versions.
@@ -141,10 +139,10 @@ Naming/BlockForwarding:
141
139
  # that start with "and" as a connector word "when foo is true and bar is false"
142
140
  RSpec/ContextWording:
143
141
  Prefixes:
144
- - when
145
- - with
146
- - without
147
- - and
142
+ - when
143
+ - with
144
+ - without
145
+ - and
148
146
 
149
147
  # Complex tests require more flexibility in their length than allowed by default (5).
150
148
  RSpec/ExampleLength:
@@ -404,6 +402,10 @@ Style/SuperWithArgsParentheses: # new in 1.58
404
402
  Enabled: true
405
403
  Style/YAMLFileRead: # new in 1.53
406
404
  Enabled: true
405
+ Style/SendWithLiteralMethodName: # new in 1.64
406
+ Enabled: true
407
+ Style/SuperArguments: # new in 1.64
408
+ Enabled: true
407
409
 
408
410
  # ----------------- Rubocop-Rspec forced enablements --------------
409
411
  RSpec/ExcessiveDocstringSpacing: # (new in 2.5)
@@ -510,3 +512,45 @@ RSpecRails/NegationBeValid: # new in 2.23
510
512
  Enabled: true
511
513
  RSpecRails/TravelAround: # new in 2.19
512
514
  Enabled: true
515
+ RSpec/ExpectInLet: # new in 2.30
516
+ Enabled: true
517
+
518
+ # ----------------- Rubocop-Performance forced enablements --------------
519
+ Performance/AncestorsInclude: # new in 1.7
520
+ Enabled: true
521
+ Performance/BigDecimalWithNumericArgument: # new in 1.7
522
+ Enabled: true
523
+ Performance/BlockGivenWithExplicitBlock: # new in 1.9
524
+ Enabled: true
525
+ Performance/CollectionLiteralInLoop: # new in 1.8
526
+ Enabled: true
527
+ Performance/ConcurrentMonotonicTime: # new in 1.12
528
+ Enabled: true
529
+ Performance/ConstantRegexp: # new in 1.9
530
+ Enabled: true
531
+ Performance/MapCompact: # new in 1.11
532
+ Enabled: true
533
+ Performance/MapMethodChain: # new in 1.19
534
+ Enabled: true
535
+ Performance/MethodObjectAsBlock: # new in 1.9
536
+ Enabled: true
537
+ Performance/RedundantEqualityComparisonBlock: # new in 1.10
538
+ Enabled: true
539
+ Performance/RedundantSortBlock: # new in 1.7
540
+ Enabled: true
541
+ Performance/RedundantSplitRegexpArgument: # new in 1.10
542
+ Enabled: true
543
+ Performance/RedundantStringChars: # new in 1.7
544
+ Enabled: true
545
+ Performance/ReverseFirst: # new in 1.7
546
+ Enabled: true
547
+ Performance/SortReverse: # new in 1.7
548
+ Enabled: true
549
+ Performance/Squeeze: # new in 1.7
550
+ Enabled: true
551
+ Performance/StringIdentifierArgument: # new in 1.13
552
+ Enabled: true
553
+ Performance/StringInclude: # new in 1.7
554
+ Enabled: true
555
+ Performance/Sum: # new in 1.8
556
+ Enabled: true
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AroundhomeCops
4
- VERSION = '6.0.1'
4
+ VERSION = '7.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: 6.0.1
4
+ version: 7.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: 2024-04-15 00:00:00.000000000 Z
11
+ date: 2024-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,14 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.63'
19
+ version: '1.64'
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.63'
26
+ version: '1.64'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-performance
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.21'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.21'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rubocop-rake
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +58,14 @@ dependencies:
44
58
  requirements:
45
59
  - - "~>"
46
60
  - !ruby/object:Gem::Version
47
- version: '2.29'
61
+ version: '2.30'
48
62
  type: :runtime
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
66
  - - "~>"
53
67
  - !ruby/object:Gem::Version
54
- version: '2.29'
68
+ version: '2.30'
55
69
  description:
56
70
  email:
57
71
  - jan.sandbrink@aroundhome.de
@@ -87,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
101
  - !ruby/object:Gem::Version
88
102
  version: '0'
89
103
  requirements: []
90
- rubygems_version: 3.5.3
104
+ rubygems_version: 3.5.11
91
105
  signing_key:
92
106
  specification_version: 4
93
107
  summary: Dependency and configuration for rubocop.