aroundhome_cops 6.0.0 → 7.0.0
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 +4 -4
- data/CHANGELOG.md +14 -0
- data/aroundhome_cops.gemspec +3 -2
- data/default.yml +81 -38
- data/lib/aroundhome_cops.rb +1 -1
- metadata +21 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e945f7b9bf460da0613d77d0f5a216bb846915fe638bf76e9e1645fa76b4a6b6
|
4
|
+
data.tar.gz: c97a61b1641b38fd7b8de97c9a87ddf3bb95944eb94c7ae4912e675688cb5171
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89cd014f0e01d75a1387ace3b87b37f1ddc85becf64805249311d470aedcf767f83ec2e8fa064f660a91a57ee24145f2ff44ed67c8621ef7241b584838b51b55
|
7
|
+
data.tar.gz: 59b752ad8bdc0ad91c251316984378bb3c635d0c1996093e91b1e8569e4855b9c75f88821663b7183d4eaf3fdabc4e735de9f88885ff84123b8bda7e0608e5a7
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
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
|
+
|
11
|
+
## Version 6.0.1
|
12
|
+
|
13
|
+
* Fix deprecation warnings and multiple defined default cops
|
14
|
+
|
1
15
|
## Version 6.0.0
|
2
16
|
|
3
17
|
* Update underlying rubocop to at least 1.63
|
data/aroundhome_cops.gemspec
CHANGED
@@ -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.
|
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.
|
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
|
-
-
|
8
|
-
-
|
9
|
-
-
|
10
|
-
-
|
11
|
-
-
|
12
|
-
-
|
13
|
-
-
|
14
|
-
-
|
15
|
-
-
|
16
|
-
-
|
17
|
-
-
|
18
|
-
-
|
19
|
-
-
|
20
|
-
-
|
21
|
-
-
|
22
|
-
-
|
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
|
-
-
|
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
|
-
-
|
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
|
-
-
|
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
|
-
-
|
68
|
-
-
|
69
|
-
-
|
70
|
-
-
|
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
|
-
-
|
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.
|
@@ -134,16 +132,17 @@ Metrics/ParameterLists:
|
|
134
132
|
# People coming from other languages or our junior colleagues will find a single & confusing.
|
135
133
|
# Omitting the parameter name is neither more readable or helpful, therefore we prefer to use &block syntax.
|
136
134
|
Naming/BlockForwarding:
|
135
|
+
Enabled: true
|
137
136
|
EnforcedStyle: explicit
|
138
137
|
|
139
138
|
# Adding "and" prefix to list of allowed prefixes to allow for nested contexts
|
140
139
|
# that start with "and" as a connector word "when foo is true and bar is false"
|
141
140
|
RSpec/ContextWording:
|
142
141
|
Prefixes:
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
142
|
+
- when
|
143
|
+
- with
|
144
|
+
- without
|
145
|
+
- and
|
147
146
|
|
148
147
|
# Complex tests require more flexibility in their length than allowed by default (5).
|
149
148
|
RSpec/ExampleLength:
|
@@ -351,8 +350,6 @@ Lint/UselessRescue: # new in 1.43
|
|
351
350
|
Enabled: true
|
352
351
|
Metrics/CollectionLiteralLength: # new in 1.47
|
353
352
|
Enabled: true
|
354
|
-
Naming/BlockForwarding: # new in 1.24
|
355
|
-
Enabled: true
|
356
353
|
Style/ArrayIntersect: # new in 1.40
|
357
354
|
Enabled: true
|
358
355
|
Style/ComparableClamp: # new in 1.44
|
@@ -405,13 +402,17 @@ Style/SuperWithArgsParentheses: # new in 1.58
|
|
405
402
|
Enabled: true
|
406
403
|
Style/YAMLFileRead: # new in 1.53
|
407
404
|
Enabled: true
|
405
|
+
Style/SendWithLiteralMethodName: # new in 1.64
|
406
|
+
Enabled: true
|
407
|
+
Style/SuperArguments: # new in 1.64
|
408
|
+
Enabled: true
|
408
409
|
|
409
410
|
# ----------------- Rubocop-Rspec forced enablements --------------
|
410
411
|
RSpec/ExcessiveDocstringSpacing: # (new in 2.5)
|
411
412
|
Enabled: true
|
412
413
|
RSpec/IdenticalEqualityAssertion: # (new in 2.4)
|
413
414
|
Enabled: true
|
414
|
-
|
415
|
+
RSpecRails/AvoidSetupHook: # (new in 2.4)
|
415
416
|
Enabled: true
|
416
417
|
RSpec/SubjectDeclaration: # (new in 2.5)
|
417
418
|
Enabled: true
|
@@ -423,11 +424,11 @@ RSpec/ChangeByZero: # new in 2.11.0
|
|
423
424
|
Enabled: true
|
424
425
|
RSpec/VerifiedDoubleReference: # new in 2.10.0
|
425
426
|
Enabled: true
|
426
|
-
|
427
|
+
Capybara/SpecificMatcher: # new in 2.12
|
427
428
|
Enabled: true
|
428
|
-
|
429
|
+
FactoryBot/SyntaxMethods: # new in 2.7
|
429
430
|
Enabled: true
|
430
|
-
|
431
|
+
RSpecRails/HaveHttpStatus: # new in 2.12
|
431
432
|
Enabled: true
|
432
433
|
RSpec/RedundantPredicateMatcher: # new in 2.26
|
433
434
|
Enabled: true
|
@@ -511,3 +512,45 @@ RSpecRails/NegationBeValid: # new in 2.23
|
|
511
512
|
Enabled: true
|
512
513
|
RSpecRails/TravelAround: # new in 2.19
|
513
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
|
data/lib/aroundhome_cops.rb
CHANGED
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
|
+
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-
|
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.
|
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.
|
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.
|
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.
|
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.
|
104
|
+
rubygems_version: 3.5.11
|
91
105
|
signing_key:
|
92
106
|
specification_version: 4
|
93
107
|
summary: Dependency and configuration for rubocop.
|