rubocop_plus 2.16.0 → 2.17.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 +21 -1
- data/Gemfile +1 -1
- data/README.md +1 -1
- data/config/group/naming.yml +3 -0
- data/config/group/rails.yml +4 -0
- data/config/group/rspec.yml +1 -6
- data/config/group/style.yml +4 -0
- data/config/rubocop.yml +6 -1
- data/lib/rubocop_plus/version.rb +2 -2
- data/rubocop_plus.gemspec +8 -5
- metadata +55 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0309c4b558f96bedc044894fbf4b6f748da52bbcba346d70bcde9874bbe71d81'
|
4
|
+
data.tar.gz: b137b8230f7b60db74b15a0d9dff6ca1cd55cf35b673c0e4da500c31e23ea872
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ebaf27f80cdf65b21176b29d4a382ba2b6e3e09f6e5f49a84d2850ee126903b6ef486c971f1f25392245a0f686d84fa755479adaf9cc9fbd3c4db8f88ea27ca
|
7
|
+
data.tar.gz: 946743b15693aedeb9a2c650218ba54e2f4910c76014eb8cdd6e95be54d899c51837e33ed9d889475d11f1a49ec1ce1c2e7b6271b77b990629baf6d9c5f8e3a8
|
@@ -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,27 @@
|
|
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.17.0 (Feb 28, 2025)
|
6
|
+
|
7
|
+
1. [#324](../../issues/324): Use `rubocop-rspec` `0.7.1`.
|
8
|
+
1. [#325](../../issues/325): Use `rubocop` `1.73.1`.
|
9
|
+
1. [#328](../../issues/328): Use `rubocop-performance` `1.24.0`.
|
10
|
+
1. [#330](../../issues/330): Use `rubocop-rails` `2.30.2`.
|
11
|
+
1. [#332](../../issues/332): Use `rubocop-rspec` `3.5.0`.
|
12
|
+
1. [#334](../../issues/334): Update development and test gems. **(Internal)**
|
13
|
+
1. [#337](../../issues/337): Switch to plugin loading. **(Internal)**
|
14
|
+
1. [#340](../../issues/340): Remove Ruby 3.1 support.
|
15
|
+
1. [#342](../../issues/342): Add Ruby 3.4 support.
|
16
|
+
1. [#344](../../issues/344): Remove `RSpec/FilePath` configuration.
|
17
|
+
1. [#346](../../issues/346): Set `RSpec/ExampleLength` to 15.
|
18
|
+
1. [#348](../../issues/348): Exclude `spec/rails_helper.rb` from `Rails/RootPathnameMethods`.
|
19
|
+
1. [#350](../../issues/350): Exclude `spec/spec_helper.rb` from `Style/BlockComments`.
|
20
|
+
1. [#352](../../issues/352): Add `rubocop-rspec_rails` `2.30.0`.
|
21
|
+
1. [#354](../../issues/354): Add `rubocop-factory_bot` `2.26.1`.
|
22
|
+
1. [#356](../../issues/356): Add `rubocop-capybara` `2.21.0`.
|
23
|
+
1. [#358](../../issues/358): Make `Naming/BlockForwarding` use the `explicit` style.
|
24
|
+
|
25
|
+
## 2.16.0 (Feb 26, 2025)
|
6
26
|
|
7
27
|
1. [#314](../../issues/314): Use `rubocop` `1.65.1`.
|
8
28
|
1. [#316](../../issues/316): Use `rubocop-performance` `1.21.1`.
|
data/Gemfile
CHANGED
data/README.md
CHANGED
data/config/group/naming.yml
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
Naming/BlockForwarding:
|
2
|
+
EnforcedStyle: explicit # See https://github.com/roberts1000/rubocop_plus/issues/358
|
3
|
+
|
1
4
|
# This cop checks for the use of 'is_', 'has_' and 'have_' in front of methods. By default, it recommends that they be removed.
|
2
5
|
# Predicates are useful in many situations. It's conterproductive to enforce a single style.
|
3
6
|
Naming/PredicateName:
|
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
data/config/rubocop.yml
CHANGED
@@ -1,9 +1,14 @@
|
|
1
|
-
|
1
|
+
plugins:
|
2
2
|
- rubocop-performance
|
3
3
|
- rubocop-rails
|
4
4
|
- rubocop-rake
|
5
5
|
- rubocop-rspec
|
6
6
|
|
7
|
+
require:
|
8
|
+
- rubocop-capybara
|
9
|
+
- rubocop-factory_bot
|
10
|
+
- rubocop-rspec_rails
|
11
|
+
|
7
12
|
AllCops:
|
8
13
|
Exclude: # skip all of the following....
|
9
14
|
- bin/bundle # A 3rd-party auto-generated file
|
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.21.0"
|
28
|
+
spec.add_dependency "rubocop-factory_bot", "2.26.1"
|
29
|
+
spec.add_dependency "rubocop-performance", "1.24.0"
|
30
|
+
spec.add_dependency "rubocop-rails", "2.30.2"
|
31
|
+
spec.add_dependency "rubocop-rake", "0.7.1"
|
32
|
+
spec.add_dependency "rubocop-rspec", "3.5.0"
|
33
|
+
spec.add_dependency "rubocop-rspec_rails", "2.30.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.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- roberts1000
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-03-01 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.73.1
|
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.73.1
|
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.21.0
|
47
|
+
type: :runtime
|
48
|
+
prerelease: false
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - '='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 2.21.0
|
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.26.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.26.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.24.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.24.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.30.2
|
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.30.2
|
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.5.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.5.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.30.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.30.0
|
96
138
|
description: Enhancements to the standard rubocop gem.
|
97
139
|
email:
|
98
140
|
- roberts@corlewsolutions.com
|
@@ -150,7 +192,7 @@ 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
|
- - ">="
|