rubocop_plus 2.16.0 → 2.18.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/.github/workflows/check_pull_request.yml +2 -2
- data/CHANGELOG.md +33 -1
- data/Gemfile +1 -1
- data/README.md +1 -1
- data/config/group/naming.yml +6 -3
- data/config/group/rails.yml +4 -0
- data/config/group/rspec.yml +1 -6
- data/config/group/style.yml +5 -1
- data/config/rubocop.yml +4 -1
- data/lib/rubocop_plus/version.rb +2 -2
- data/rubocop_plus.gemspec +8 -5
- metadata +56 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54ade96a13256a04033e506e891179b8aa2c1e00b12c8eb5f692b78f5488ba9b
|
4
|
+
data.tar.gz: cf3da9de09e3a0314238e2f1805ab925a05bf7845abe5706b2781ab79d149041
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0099d536d63b1ac684abcd1b22ce2ee60a351cf1b8f52beb2d36d35082ac531dfd81b81822cb6edcb633e73c4e8606707531d579af31e06508bedae2d5b29b6
|
7
|
+
data.tar.gz: a28faf60ece07568fc007ef7505c303f6239af497684730280b064769c0a9cacf1f4895590e18f1db79c2de49fbad5b4d3ae1b6762b4b6ef04e07bfdbb7a0e66
|
@@ -13,7 +13,7 @@ jobs:
|
|
13
13
|
runs-on: ubuntu-latest
|
14
14
|
strategy:
|
15
15
|
matrix:
|
16
|
-
ruby-version: ['3.
|
16
|
+
ruby-version: ['3.2', '3.3', '3.4']
|
17
17
|
steps:
|
18
18
|
- uses: actions/checkout@v2
|
19
19
|
- name: Set up Ruby
|
@@ -30,7 +30,7 @@ jobs:
|
|
30
30
|
runs-on: ubuntu-latest
|
31
31
|
strategy:
|
32
32
|
matrix:
|
33
|
-
ruby-version: ['3.
|
33
|
+
ruby-version: ['3.2']
|
34
34
|
steps:
|
35
35
|
- uses: actions/checkout@v2
|
36
36
|
- name: Set up Ruby
|
data/CHANGELOG.md
CHANGED
@@ -2,7 +2,39 @@
|
|
2
2
|
|
3
3
|
Issues are tracked at https://github.com/roberts1000/rubocop_plus/issues. Issues marked as **(Internal)** only affect development.
|
4
4
|
|
5
|
-
## 2.
|
5
|
+
## 2.18.0 (Jul 15, 2025)
|
6
|
+
|
7
|
+
1. [#361](../../issues/361): Use `rubocop` `1.78.0`.
|
8
|
+
1. [#363](../../issues/363): Use `rubocop-capybara` `2.22.1`.
|
9
|
+
1. [#365](../../issues/365): Use `rubocop-factory_bot` `2.27.1`.
|
10
|
+
1. [#367](../../issues/367): Use `rubocop-performance` `1.25.0`.
|
11
|
+
1. [#369](../../issues/369): Use `rubocop-rails` `2.32.0`.
|
12
|
+
1. [#371](../../issues/371): Use `rubocop-rspec` `3.6.0`.
|
13
|
+
1. [#373](../../issues/373): Use `rubocop-rspec_rails` `2.31.0`.
|
14
|
+
1. [#375](../../issues/375): Finish plugin loading migration.
|
15
|
+
1. [#377](../../issues/377): Rename `Naming/PredicateName` to `Naming/PredicatePrefix`.
|
16
|
+
|
17
|
+
## 2.17.0 (Feb 28, 2025)
|
18
|
+
|
19
|
+
1. [#324](../../issues/324): Use `rubocop-rspec` `0.7.1`.
|
20
|
+
1. [#325](../../issues/325): Use `rubocop` `1.73.1`.
|
21
|
+
1. [#328](../../issues/328): Use `rubocop-performance` `1.24.0`.
|
22
|
+
1. [#330](../../issues/330): Use `rubocop-rails` `2.30.2`.
|
23
|
+
1. [#332](../../issues/332): Use `rubocop-rspec` `3.5.0`.
|
24
|
+
1. [#334](../../issues/334): Update development and test gems. **(Internal)**
|
25
|
+
1. [#337](../../issues/337): Switch to plugin loading. **(Internal)**
|
26
|
+
1. [#340](../../issues/340): Remove Ruby 3.1 support.
|
27
|
+
1. [#342](../../issues/342): Add Ruby 3.4 support.
|
28
|
+
1. [#344](../../issues/344): Remove `RSpec/FilePath` configuration.
|
29
|
+
1. [#346](../../issues/346): Set `RSpec/ExampleLength` to 15.
|
30
|
+
1. [#348](../../issues/348): Exclude `spec/rails_helper.rb` from `Rails/RootPathnameMethods`.
|
31
|
+
1. [#350](../../issues/350): Exclude `spec/spec_helper.rb` from `Style/BlockComments`.
|
32
|
+
1. [#352](../../issues/352): Add `rubocop-rspec_rails` `2.30.0`.
|
33
|
+
1. [#354](../../issues/354): Add `rubocop-factory_bot` `2.26.1`.
|
34
|
+
1. [#356](../../issues/356): Add `rubocop-capybara` `2.21.0`.
|
35
|
+
1. [#358](../../issues/358): Make `Naming/BlockForwarding` use the `explicit` style.
|
36
|
+
|
37
|
+
## 2.16.0 (Feb 26, 2025)
|
6
38
|
|
7
39
|
1. [#314](../../issues/314): Use `rubocop` `1.65.1`.
|
8
40
|
1. [#316](../../issues/316): Use `rubocop-performance` `1.21.1`.
|
data/Gemfile
CHANGED
data/README.md
CHANGED
data/config/group/naming.yml
CHANGED
@@ -1,4 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
Naming/BlockForwarding:
|
2
|
+
EnforcedStyle: explicit # See https://github.com/roberts1000/rubocop_plus/issues/358
|
3
|
+
|
4
|
+
# This cop checks for the use of 'is_', 'has_' and 'have_' in front of methods. Keep prefixes can sometimes improve readability.
|
5
|
+
# For example, 'is_cat?'' has a different meaning than 'has_cat?' And just 'cat?' is ambiguous.
|
6
|
+
Naming/PredicatePrefix:
|
4
7
|
Enabled: false
|
data/config/group/rails.yml
CHANGED
data/config/group/rspec.yml
CHANGED
@@ -7,12 +7,7 @@ RSpec/DescribedClass:
|
|
7
7
|
# Checks the number of lines in the spec example. The default is 5, which frequently can be a bit tight.
|
8
8
|
# https://github.com/rubocop-hq/rubocop-rspec/blob/v1.37.1/lib/rubocop/cop/rspec/example_length.rb#L28
|
9
9
|
RSpec/ExampleLength:
|
10
|
-
Max:
|
11
|
-
|
12
|
-
# Checks that spec file paths are consistent with the test subject. Cop is too strict.
|
13
|
-
# https://github.com/rubocop-hq/rubocop-rspec/blob/v1.37.1/lib/rubocop/cop/rspec/file_path.rb
|
14
|
-
RSpec/FilePath:
|
15
|
-
Enabled: false
|
10
|
+
Max: 15
|
16
11
|
|
17
12
|
# Checks for the use of instance variables in specs. Prefer allowing instance variables ('let' should be used when possible).
|
18
13
|
# https://github.com/rubocop-hq/rubocop-rspec/blob/v1.37.1/lib/rubocop/cop/rspec/instance_variable.rb
|
data/config/group/style.yml
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
Style/AccessModifierDeclarations:
|
3
3
|
Enabled: false
|
4
4
|
|
5
|
+
Style/BlockComments:
|
6
|
+
Exclude:
|
7
|
+
- spec/spec_helper.rb
|
8
|
+
|
5
9
|
# In ruby, you can define modules and classes like this:
|
6
10
|
#
|
7
11
|
# = Nested = = Compact =
|
@@ -48,7 +52,7 @@ Style/MixinUsage:
|
|
48
52
|
|
49
53
|
# Style/PreferredHashMethods checks if hash methods like 'has_key?' or 'has_value?' are called, then recommends they be switched
|
50
54
|
# to 'key?' and 'value?'. rubocop_plus perfers the use of predicates on method names since they make the code questions more
|
51
|
-
# precise. Also, the Naming/
|
55
|
+
# precise. Also, the Naming/PredicatePrefix cop has been disabled in this file and that cop checks for a similar
|
52
56
|
# pattern on custom methods. For consistency, the more verbose form (like 'has_key?') is preferred when working with Hashes.
|
53
57
|
Style/PreferredHashMethods:
|
54
58
|
EnforcedStyle: verbose
|
data/config/rubocop.yml
CHANGED
data/lib/rubocop_plus/version.rb
CHANGED
data/rubocop_plus.gemspec
CHANGED
@@ -20,12 +20,15 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
|
23
|
-
spec.required_ruby_version = ">= 3.
|
23
|
+
spec.required_ruby_version = ">= 3.2"
|
24
24
|
|
25
25
|
spec.add_dependency "cri", "~> 2.0"
|
26
26
|
spec.add_dependency "rubocop", RubocopPlus::RUBOCOP_VERSION.to_s
|
27
|
-
spec.add_dependency "rubocop-
|
28
|
-
spec.add_dependency "rubocop-
|
29
|
-
spec.add_dependency "rubocop-
|
30
|
-
spec.add_dependency "rubocop-
|
27
|
+
spec.add_dependency "rubocop-capybara", "2.22.1"
|
28
|
+
spec.add_dependency "rubocop-factory_bot", "2.27.1"
|
29
|
+
spec.add_dependency "rubocop-performance", "1.25.0"
|
30
|
+
spec.add_dependency "rubocop-rails", "2.32.0"
|
31
|
+
spec.add_dependency "rubocop-rake", "0.7.1"
|
32
|
+
spec.add_dependency "rubocop-rspec", "3.6.0"
|
33
|
+
spec.add_dependency "rubocop-rspec_rails", "2.31.0"
|
31
34
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop_plus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- roberts1000
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: cri
|
@@ -29,70 +29,112 @@ dependencies:
|
|
29
29
|
requirements:
|
30
30
|
- - '='
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 1.
|
32
|
+
version: 1.78.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - '='
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: 1.
|
39
|
+
version: 1.78.0
|
40
|
+
- !ruby/object:Gem::Dependency
|
41
|
+
name: rubocop-capybara
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - '='
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 2.22.1
|
47
|
+
type: :runtime
|
48
|
+
prerelease: false
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - '='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 2.22.1
|
54
|
+
- !ruby/object:Gem::Dependency
|
55
|
+
name: rubocop-factory_bot
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - '='
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 2.27.1
|
61
|
+
type: :runtime
|
62
|
+
prerelease: false
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - '='
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: 2.27.1
|
40
68
|
- !ruby/object:Gem::Dependency
|
41
69
|
name: rubocop-performance
|
42
70
|
requirement: !ruby/object:Gem::Requirement
|
43
71
|
requirements:
|
44
72
|
- - '='
|
45
73
|
- !ruby/object:Gem::Version
|
46
|
-
version: 1.
|
74
|
+
version: 1.25.0
|
47
75
|
type: :runtime
|
48
76
|
prerelease: false
|
49
77
|
version_requirements: !ruby/object:Gem::Requirement
|
50
78
|
requirements:
|
51
79
|
- - '='
|
52
80
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.
|
81
|
+
version: 1.25.0
|
54
82
|
- !ruby/object:Gem::Dependency
|
55
83
|
name: rubocop-rails
|
56
84
|
requirement: !ruby/object:Gem::Requirement
|
57
85
|
requirements:
|
58
86
|
- - '='
|
59
87
|
- !ruby/object:Gem::Version
|
60
|
-
version: 2.
|
88
|
+
version: 2.32.0
|
61
89
|
type: :runtime
|
62
90
|
prerelease: false
|
63
91
|
version_requirements: !ruby/object:Gem::Requirement
|
64
92
|
requirements:
|
65
93
|
- - '='
|
66
94
|
- !ruby/object:Gem::Version
|
67
|
-
version: 2.
|
95
|
+
version: 2.32.0
|
68
96
|
- !ruby/object:Gem::Dependency
|
69
97
|
name: rubocop-rake
|
70
98
|
requirement: !ruby/object:Gem::Requirement
|
71
99
|
requirements:
|
72
100
|
- - '='
|
73
101
|
- !ruby/object:Gem::Version
|
74
|
-
version: 0.
|
102
|
+
version: 0.7.1
|
75
103
|
type: :runtime
|
76
104
|
prerelease: false
|
77
105
|
version_requirements: !ruby/object:Gem::Requirement
|
78
106
|
requirements:
|
79
107
|
- - '='
|
80
108
|
- !ruby/object:Gem::Version
|
81
|
-
version: 0.
|
109
|
+
version: 0.7.1
|
82
110
|
- !ruby/object:Gem::Dependency
|
83
111
|
name: rubocop-rspec
|
84
112
|
requirement: !ruby/object:Gem::Requirement
|
85
113
|
requirements:
|
86
114
|
- - '='
|
87
115
|
- !ruby/object:Gem::Version
|
88
|
-
version: 3.0
|
116
|
+
version: 3.6.0
|
117
|
+
type: :runtime
|
118
|
+
prerelease: false
|
119
|
+
version_requirements: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - '='
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: 3.6.0
|
124
|
+
- !ruby/object:Gem::Dependency
|
125
|
+
name: rubocop-rspec_rails
|
126
|
+
requirement: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - '='
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: 2.31.0
|
89
131
|
type: :runtime
|
90
132
|
prerelease: false
|
91
133
|
version_requirements: !ruby/object:Gem::Requirement
|
92
134
|
requirements:
|
93
135
|
- - '='
|
94
136
|
- !ruby/object:Gem::Version
|
95
|
-
version:
|
137
|
+
version: 2.31.0
|
96
138
|
description: Enhancements to the standard rubocop gem.
|
97
139
|
email:
|
98
140
|
- roberts@corlewsolutions.com
|
@@ -150,14 +192,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
150
192
|
requirements:
|
151
193
|
- - ">="
|
152
194
|
- !ruby/object:Gem::Version
|
153
|
-
version: '3.
|
195
|
+
version: '3.2'
|
154
196
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
197
|
requirements:
|
156
198
|
- - ">="
|
157
199
|
- !ruby/object:Gem::Version
|
158
200
|
version: '0'
|
159
201
|
requirements: []
|
160
|
-
rubygems_version: 3.6.
|
202
|
+
rubygems_version: 3.6.9
|
161
203
|
specification_version: 4
|
162
204
|
summary: Enhancements to the standard rubocop gem.
|
163
205
|
test_files: []
|