rubocop-powerhome 0.6.1 → 0.8.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/.rubocop.yml +1 -1
- data/Appraisals +8 -8
- data/CHANGELOG.md +18 -1
- data/Gemfile +0 -6
- data/Gemfile.lock +187 -141
- data/config/default.yml +13 -1
- data/docs/README.md +4 -2
- data/gemfiles/rails_7_1.gemfile +0 -5
- data/gemfiles/rails_7_1.gemfile.lock +78 -72
- data/gemfiles/rails_7_2.gemfile +0 -5
- data/gemfiles/rails_7_2.gemfile.lock +78 -72
- data/gemfiles/{rails_6_0.gemfile → rails_8_0.gemfile} +1 -3
- data/gemfiles/rails_8_0.gemfile.lock +324 -0
- data/gemfiles/rails_8_1.gemfile +9 -0
- data/gemfiles/rails_8_1.gemfile.lock +326 -0
- data/lib/rubocop/cop/graphql/default_null_true.rb +1 -1
- data/lib/rubocop/cop/graphql/field_type_in_block.rb +9 -10
- data/lib/rubocop/cop/migration/acknowledge_ignored_column.rb +10 -2
- data/lib/rubocop/cop/migration/down_direction.rb +32 -0
- data/lib/rubocop/cop/migration/rename_column.rb +5 -0
- data/lib/rubocop/cop/migration/rename_table.rb +3 -0
- data/lib/rubocop/cop/migration_cops.rb +2 -0
- data/lib/rubocop/cop/naming/view_component.rb +1 -1
- data/lib/rubocop/powerhome/plugin.rb +29 -0
- data/lib/rubocop/powerhome/version.rb +1 -1
- data/lib/rubocop/powerhome.rb +1 -1
- data/lib/rubocop-powerhome.rb +1 -13
- data/rubocop-powerhome.gemspec +8 -5
- metadata +34 -20
- data/gemfiles/rails_6_0.gemfile.lock +0 -254
- data/gemfiles/rails_6_1.gemfile +0 -14
- data/gemfiles/rails_6_1.gemfile.lock +0 -276
- data/gemfiles/rails_7_0.gemfile +0 -14
- data/gemfiles/rails_7_0.gemfile.lock +0 -273
- data/lib/rubocop/powerhome/inject.rb +0 -20
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2c15cdfc506d7635ac373cdf73fdffef23d19f3e8162f2c7ad4e5250018a525b
|
|
4
|
+
data.tar.gz: 9bb8a5e0f43b76480b3b775e8e8ddd5809df601765befeab9a80eda08136d521
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 801a2989e6299f66f87d2d9161723e51aa5d26c50b0041b4f949fbdd0620c05a771803a7e8bfc0f4026476bce7a6861509515aed3f9d42d1605862f5c94f3088
|
|
7
|
+
data.tar.gz: 6202ba5bcabd1ed957e76330ee3f9c273ada82c4f1d0f9bb50bafa7107383f3f718519841c13bf8c5f103a5e6f3d39f9f5093181c940d77da6a9ebae260e932e
|
data/.rubocop.yml
CHANGED
data/Appraisals
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
appraise "rails-6-1" do
|
|
4
|
-
gem "rails", "6.1.7.7"
|
|
5
|
-
end
|
|
6
|
-
|
|
7
|
-
appraise "rails-7-0" do
|
|
8
|
-
gem "rails", "7.0.8.1"
|
|
9
|
-
end
|
|
10
|
-
|
|
11
3
|
appraise "rails-7-1" do
|
|
12
4
|
gem "rails", "7.1.5.2"
|
|
13
5
|
end
|
|
@@ -15,3 +7,11 @@ end
|
|
|
15
7
|
appraise "rails-7-2" do
|
|
16
8
|
gem "rails", "7.2.2.2"
|
|
17
9
|
end
|
|
10
|
+
|
|
11
|
+
appraise "rails-8-0" do
|
|
12
|
+
gem "rails", "8.0.5"
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
appraise "rails-8-1" do
|
|
16
|
+
gem "rails", "8.1.3"
|
|
17
|
+
end
|
data/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [0.8.0] - 2026-11-23
|
|
4
|
+
|
|
5
|
+
- Move the `Metrics/BlockLength` exemptions for `describe` and `context` from the deprecated `IgnoredMethods` key to `AllowedMethods`, keeping RuboCop's default `refine` exemption
|
|
6
|
+
- rubocop-powerhome is now a RuboCop plugin (lint_roller), replacing the `Inject` config monkey patch. Load it with `plugins: - rubocop-powerhome`; `require:` still works with a deprecation warning
|
|
7
|
+
- **Breaking:** rubocop-performance, rubocop-rails, rubocop-rake and rubocop-rspec are loaded as plugins, so their own default configuration now applies. Previously, with plugin-era versions of those gems, their cops ran without their defaults (for example `Performance/Casecmp` ran although it is disabled by default, and Rails cops ignored their `Include` paths). Requires rubocop-performance >= 1.24, rubocop-rails >= 2.28, rubocop-rake >= 0.7 and rubocop-rspec >= 3.5
|
|
8
|
+
- Migration cops no longer flag rollbacks (`def down`, `dir.down` in `reversible`), and `Migration/AcknowledgeIgnoredColumn` now covers `remove_columns`, `remove_reference`, `remove_belongs_to`, `remove_timestamps` and their `change_table` forms
|
|
9
|
+
- Fix `GraphQL/FieldTypeInBlock` skipping every field declared inside a block (e.g. `included do`), and fix an undefined variable in one of its error messages
|
|
10
|
+
- Fix `Naming/ViewComponent` skipping classes that inherit from an unqualified `ApplicationComponent`
|
|
11
|
+
- Fix `GraphQL/DefaultNullTrue` missing `null: true` when it is not the first keyword argument
|
|
12
|
+
|
|
13
|
+
## [0.7.0] - 2026-07-28
|
|
14
|
+
|
|
15
|
+
[HFH-4410 - Bump powertools for Rails 8.1.3 V2](https://github.com/powerhome/power-tools/pull/426)
|
|
16
|
+
|
|
17
|
+
- Upgrade Rails to 8.1.3 for Nitro and Runway compatability
|
|
18
|
+
- Drop support for Ruby < 3.3 and Rails < 7.1 [#396](https://github.com/powerhome/power-tools/pull/396)
|
|
2
19
|
|
|
3
20
|
## [0.6.1] - 2026-02-26
|
|
4
21
|
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,103 +1,123 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
rubocop-powerhome (0.
|
|
4
|
+
rubocop-powerhome (0.8.0)
|
|
5
|
+
lint_roller (~> 1.1)
|
|
5
6
|
rubocop (= 1.82.1)
|
|
6
|
-
rubocop-performance
|
|
7
|
-
rubocop-rails
|
|
8
|
-
rubocop-rake
|
|
9
|
-
rubocop-rspec
|
|
7
|
+
rubocop-performance (>= 1.24)
|
|
8
|
+
rubocop-rails (>= 2.28)
|
|
9
|
+
rubocop-rake (>= 0.7)
|
|
10
|
+
rubocop-rspec (>= 3.5)
|
|
10
11
|
|
|
11
12
|
GEM
|
|
12
13
|
remote: https://rubygems.org/
|
|
13
14
|
specs:
|
|
14
|
-
actioncable (7.
|
|
15
|
-
actionpack (= 7.
|
|
16
|
-
activesupport (= 7.
|
|
15
|
+
actioncable (7.2.3.1)
|
|
16
|
+
actionpack (= 7.2.3.1)
|
|
17
|
+
activesupport (= 7.2.3.1)
|
|
17
18
|
nio4r (~> 2.0)
|
|
18
19
|
websocket-driver (>= 0.6.1)
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
rack (~> 2.0, >= 2.2.4)
|
|
20
|
+
zeitwerk (~> 2.6)
|
|
21
|
+
actionmailbox (7.2.3.1)
|
|
22
|
+
actionpack (= 7.2.3.1)
|
|
23
|
+
activejob (= 7.2.3.1)
|
|
24
|
+
activerecord (= 7.2.3.1)
|
|
25
|
+
activestorage (= 7.2.3.1)
|
|
26
|
+
activesupport (= 7.2.3.1)
|
|
27
|
+
mail (>= 2.8.0)
|
|
28
|
+
actionmailer (7.2.3.1)
|
|
29
|
+
actionpack (= 7.2.3.1)
|
|
30
|
+
actionview (= 7.2.3.1)
|
|
31
|
+
activejob (= 7.2.3.1)
|
|
32
|
+
activesupport (= 7.2.3.1)
|
|
33
|
+
mail (>= 2.8.0)
|
|
34
|
+
rails-dom-testing (~> 2.2)
|
|
35
|
+
actionpack (7.2.3.1)
|
|
36
|
+
actionview (= 7.2.3.1)
|
|
37
|
+
activesupport (= 7.2.3.1)
|
|
38
|
+
cgi
|
|
39
|
+
nokogiri (>= 1.8.5)
|
|
40
|
+
racc
|
|
41
|
+
rack (>= 2.2.4, < 3.3)
|
|
42
|
+
rack-session (>= 1.0.1)
|
|
43
43
|
rack-test (>= 0.6.3)
|
|
44
|
-
rails-dom-testing (~> 2.
|
|
45
|
-
rails-html-sanitizer (~> 1.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
44
|
+
rails-dom-testing (~> 2.2)
|
|
45
|
+
rails-html-sanitizer (~> 1.6)
|
|
46
|
+
useragent (~> 0.16)
|
|
47
|
+
actiontext (7.2.3.1)
|
|
48
|
+
actionpack (= 7.2.3.1)
|
|
49
|
+
activerecord (= 7.2.3.1)
|
|
50
|
+
activestorage (= 7.2.3.1)
|
|
51
|
+
activesupport (= 7.2.3.1)
|
|
51
52
|
globalid (>= 0.6.0)
|
|
52
53
|
nokogiri (>= 1.8.5)
|
|
53
|
-
actionview (7.
|
|
54
|
-
activesupport (= 7.
|
|
54
|
+
actionview (7.2.3.1)
|
|
55
|
+
activesupport (= 7.2.3.1)
|
|
55
56
|
builder (~> 3.1)
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
rails-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
cgi
|
|
58
|
+
erubi (~> 1.11)
|
|
59
|
+
rails-dom-testing (~> 2.2)
|
|
60
|
+
rails-html-sanitizer (~> 1.6)
|
|
61
|
+
activejob (7.2.3.1)
|
|
62
|
+
activesupport (= 7.2.3.1)
|
|
61
63
|
globalid (>= 0.3.6)
|
|
62
|
-
activemodel (7.
|
|
63
|
-
activesupport (= 7.
|
|
64
|
-
activerecord (7.
|
|
65
|
-
activemodel (= 7.
|
|
66
|
-
activesupport (= 7.
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
64
|
+
activemodel (7.2.3.1)
|
|
65
|
+
activesupport (= 7.2.3.1)
|
|
66
|
+
activerecord (7.2.3.1)
|
|
67
|
+
activemodel (= 7.2.3.1)
|
|
68
|
+
activesupport (= 7.2.3.1)
|
|
69
|
+
timeout (>= 0.4.0)
|
|
70
|
+
activestorage (7.2.3.1)
|
|
71
|
+
actionpack (= 7.2.3.1)
|
|
72
|
+
activejob (= 7.2.3.1)
|
|
73
|
+
activerecord (= 7.2.3.1)
|
|
74
|
+
activesupport (= 7.2.3.1)
|
|
72
75
|
marcel (~> 1.0)
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
+
activesupport (7.2.3.1)
|
|
77
|
+
base64
|
|
78
|
+
benchmark (>= 0.3)
|
|
79
|
+
bigdecimal
|
|
80
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
81
|
+
connection_pool (>= 2.2.5)
|
|
82
|
+
drb
|
|
76
83
|
i18n (>= 1.6, < 2)
|
|
77
|
-
|
|
78
|
-
|
|
84
|
+
logger (>= 1.4.2)
|
|
85
|
+
minitest (>= 5.1, < 6)
|
|
86
|
+
securerandom (>= 0.3)
|
|
87
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
79
88
|
appraisal (2.5.0)
|
|
80
89
|
bundler
|
|
81
90
|
rake
|
|
82
91
|
thor (>= 0.14.0)
|
|
83
|
-
ast (2.4.
|
|
84
|
-
base64 (0.
|
|
92
|
+
ast (2.4.3)
|
|
93
|
+
base64 (0.3.0)
|
|
94
|
+
benchmark (0.5.0)
|
|
95
|
+
bigdecimal (4.1.1)
|
|
85
96
|
builder (3.3.0)
|
|
86
97
|
byebug (11.1.3)
|
|
98
|
+
cgi (0.5.1)
|
|
87
99
|
coderay (1.1.3)
|
|
88
|
-
concurrent-ruby (1.3.
|
|
100
|
+
concurrent-ruby (1.3.6)
|
|
101
|
+
connection_pool (3.0.2)
|
|
89
102
|
crass (1.0.6)
|
|
90
|
-
csv (3.3.
|
|
91
|
-
date (3.
|
|
92
|
-
diff-lcs (1.
|
|
93
|
-
|
|
103
|
+
csv (3.3.5)
|
|
104
|
+
date (3.5.1)
|
|
105
|
+
diff-lcs (1.6.2)
|
|
106
|
+
drb (2.2.3)
|
|
107
|
+
erb (6.0.2)
|
|
94
108
|
erubi (1.13.1)
|
|
95
|
-
globalid (1.
|
|
109
|
+
globalid (1.3.0)
|
|
96
110
|
activesupport (>= 6.1)
|
|
97
|
-
i18n (1.14.
|
|
111
|
+
i18n (1.14.8)
|
|
98
112
|
concurrent-ruby (~> 1.0)
|
|
99
|
-
|
|
100
|
-
|
|
113
|
+
io-console (0.8.2)
|
|
114
|
+
irb (1.17.0)
|
|
115
|
+
pp (>= 0.6.0)
|
|
116
|
+
prism (>= 1.3.0)
|
|
117
|
+
rdoc (>= 4.0.0)
|
|
118
|
+
reline (>= 0.4.2)
|
|
119
|
+
json (2.19.3)
|
|
120
|
+
language_server-protocol (3.17.0.5)
|
|
101
121
|
license_finder (7.2.1)
|
|
102
122
|
bundler
|
|
103
123
|
csv (~> 3.2)
|
|
@@ -107,96 +127,118 @@ GEM
|
|
|
107
127
|
with_env (= 1.1.0)
|
|
108
128
|
xml-simple (~> 1.1.9)
|
|
109
129
|
lint_roller (1.1.0)
|
|
110
|
-
|
|
130
|
+
logger (1.7.0)
|
|
131
|
+
loofah (2.25.1)
|
|
111
132
|
crass (~> 1.0.2)
|
|
112
133
|
nokogiri (>= 1.12.0)
|
|
113
|
-
mail (2.
|
|
134
|
+
mail (2.9.0)
|
|
135
|
+
logger
|
|
114
136
|
mini_mime (>= 0.1.1)
|
|
115
137
|
net-imap
|
|
116
138
|
net-pop
|
|
117
139
|
net-smtp
|
|
118
|
-
marcel (1.0
|
|
140
|
+
marcel (1.1.0)
|
|
119
141
|
method_source (1.1.0)
|
|
120
142
|
mini_mime (1.1.5)
|
|
121
143
|
mini_portile2 (2.8.9)
|
|
122
|
-
minitest (5.
|
|
123
|
-
net-imap (0.
|
|
144
|
+
minitest (5.27.0)
|
|
145
|
+
net-imap (0.6.3)
|
|
124
146
|
date
|
|
125
147
|
net-protocol
|
|
126
148
|
net-pop (0.1.2)
|
|
127
149
|
net-protocol
|
|
128
150
|
net-protocol (0.2.2)
|
|
129
151
|
timeout
|
|
130
|
-
net-smtp (0.5.
|
|
152
|
+
net-smtp (0.5.1)
|
|
131
153
|
net-protocol
|
|
132
|
-
nio4r (2.7.
|
|
133
|
-
nokogiri (1.
|
|
154
|
+
nio4r (2.7.5)
|
|
155
|
+
nokogiri (1.19.2)
|
|
134
156
|
mini_portile2 (~> 2.8.2)
|
|
135
157
|
racc (~> 1.4)
|
|
136
|
-
nokogiri (1.
|
|
158
|
+
nokogiri (1.19.2-arm64-darwin)
|
|
137
159
|
racc (~> 1.4)
|
|
138
|
-
nokogiri (1.
|
|
160
|
+
nokogiri (1.19.2-x86_64-linux-gnu)
|
|
139
161
|
racc (~> 1.4)
|
|
140
|
-
parallel (1.
|
|
141
|
-
parser (3.3.
|
|
162
|
+
parallel (1.28.0)
|
|
163
|
+
parser (3.3.11.1)
|
|
142
164
|
ast (~> 2.4.1)
|
|
143
165
|
racc
|
|
144
|
-
|
|
166
|
+
pp (0.6.3)
|
|
167
|
+
prettyprint
|
|
168
|
+
prettyprint (0.2.0)
|
|
169
|
+
prism (1.9.0)
|
|
145
170
|
pry (0.14.2)
|
|
146
171
|
coderay (~> 1.1)
|
|
147
172
|
method_source (~> 1.0)
|
|
148
173
|
pry-byebug (3.10.1)
|
|
149
174
|
byebug (~> 11.0)
|
|
150
175
|
pry (>= 0.13, < 0.15)
|
|
176
|
+
psych (5.3.1)
|
|
177
|
+
date
|
|
178
|
+
stringio
|
|
151
179
|
racc (1.8.1)
|
|
152
|
-
rack (
|
|
180
|
+
rack (3.2.6)
|
|
181
|
+
rack-session (2.1.2)
|
|
182
|
+
base64 (>= 0.1.0)
|
|
183
|
+
rack (>= 3.0.0)
|
|
153
184
|
rack-test (2.2.0)
|
|
154
185
|
rack (>= 1.3)
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
186
|
+
rackup (2.3.1)
|
|
187
|
+
rack (>= 3)
|
|
188
|
+
rails (7.2.3.1)
|
|
189
|
+
actioncable (= 7.2.3.1)
|
|
190
|
+
actionmailbox (= 7.2.3.1)
|
|
191
|
+
actionmailer (= 7.2.3.1)
|
|
192
|
+
actionpack (= 7.2.3.1)
|
|
193
|
+
actiontext (= 7.2.3.1)
|
|
194
|
+
actionview (= 7.2.3.1)
|
|
195
|
+
activejob (= 7.2.3.1)
|
|
196
|
+
activemodel (= 7.2.3.1)
|
|
197
|
+
activerecord (= 7.2.3.1)
|
|
198
|
+
activestorage (= 7.2.3.1)
|
|
199
|
+
activesupport (= 7.2.3.1)
|
|
167
200
|
bundler (>= 1.15.0)
|
|
168
|
-
railties (= 7.
|
|
169
|
-
rails-dom-testing (2.
|
|
201
|
+
railties (= 7.2.3.1)
|
|
202
|
+
rails-dom-testing (2.3.0)
|
|
170
203
|
activesupport (>= 5.0.0)
|
|
171
204
|
minitest
|
|
172
205
|
nokogiri (>= 1.6)
|
|
173
|
-
rails-html-sanitizer (1.
|
|
174
|
-
loofah (~> 2.
|
|
206
|
+
rails-html-sanitizer (1.7.0)
|
|
207
|
+
loofah (~> 2.25)
|
|
175
208
|
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
|
|
176
|
-
railties (7.
|
|
177
|
-
actionpack (= 7.
|
|
178
|
-
activesupport (= 7.
|
|
179
|
-
|
|
209
|
+
railties (7.2.3.1)
|
|
210
|
+
actionpack (= 7.2.3.1)
|
|
211
|
+
activesupport (= 7.2.3.1)
|
|
212
|
+
cgi
|
|
213
|
+
irb (~> 1.13)
|
|
214
|
+
rackup (>= 1.0.0)
|
|
180
215
|
rake (>= 12.2)
|
|
181
|
-
thor (~> 1.0)
|
|
182
|
-
|
|
216
|
+
thor (~> 1.0, >= 1.2.2)
|
|
217
|
+
tsort (>= 0.2)
|
|
218
|
+
zeitwerk (~> 2.6)
|
|
183
219
|
rainbow (3.1.1)
|
|
184
|
-
rake (13.
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
220
|
+
rake (13.3.1)
|
|
221
|
+
rdoc (7.2.0)
|
|
222
|
+
erb
|
|
223
|
+
psych (>= 4.0.0)
|
|
224
|
+
tsort
|
|
225
|
+
regexp_parser (2.12.0)
|
|
226
|
+
reline (0.6.3)
|
|
227
|
+
io-console (~> 0.5)
|
|
228
|
+
rexml (3.4.4)
|
|
229
|
+
rspec (3.13.2)
|
|
188
230
|
rspec-core (~> 3.13.0)
|
|
189
231
|
rspec-expectations (~> 3.13.0)
|
|
190
232
|
rspec-mocks (~> 3.13.0)
|
|
191
|
-
rspec-core (3.13.
|
|
233
|
+
rspec-core (3.13.6)
|
|
192
234
|
rspec-support (~> 3.13.0)
|
|
193
|
-
rspec-expectations (3.13.
|
|
235
|
+
rspec-expectations (3.13.5)
|
|
194
236
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
195
237
|
rspec-support (~> 3.13.0)
|
|
196
|
-
rspec-mocks (3.13.
|
|
238
|
+
rspec-mocks (3.13.8)
|
|
197
239
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
198
240
|
rspec-support (~> 3.13.0)
|
|
199
|
-
rspec-support (3.13.
|
|
241
|
+
rspec-support (3.13.7)
|
|
200
242
|
rubocop (1.82.1)
|
|
201
243
|
json (~> 2.3)
|
|
202
244
|
language_server-protocol (~> 3.17.0.2)
|
|
@@ -208,38 +250,47 @@ GEM
|
|
|
208
250
|
rubocop-ast (>= 1.48.0, < 2.0)
|
|
209
251
|
ruby-progressbar (~> 1.7)
|
|
210
252
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
211
|
-
rubocop-ast (1.
|
|
253
|
+
rubocop-ast (1.49.1)
|
|
212
254
|
parser (>= 3.3.7.2)
|
|
213
|
-
prism (~> 1.
|
|
214
|
-
rubocop-performance (1.
|
|
215
|
-
|
|
216
|
-
rubocop
|
|
217
|
-
|
|
255
|
+
prism (~> 1.7)
|
|
256
|
+
rubocop-performance (1.26.1)
|
|
257
|
+
lint_roller (~> 1.1)
|
|
258
|
+
rubocop (>= 1.75.0, < 2.0)
|
|
259
|
+
rubocop-ast (>= 1.47.1, < 2.0)
|
|
260
|
+
rubocop-rails (2.34.3)
|
|
218
261
|
activesupport (>= 4.2.0)
|
|
262
|
+
lint_roller (~> 1.1)
|
|
219
263
|
rack (>= 1.1)
|
|
220
|
-
rubocop (>= 1.
|
|
221
|
-
rubocop-ast (>= 1.
|
|
222
|
-
rubocop-rake (0.
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
264
|
+
rubocop (>= 1.75.0, < 2.0)
|
|
265
|
+
rubocop-ast (>= 1.44.0, < 2.0)
|
|
266
|
+
rubocop-rake (0.7.1)
|
|
267
|
+
lint_roller (~> 1.1)
|
|
268
|
+
rubocop (>= 1.72.1)
|
|
269
|
+
rubocop-rspec (3.9.0)
|
|
270
|
+
lint_roller (~> 1.1)
|
|
271
|
+
rubocop (~> 1.81)
|
|
226
272
|
ruby-progressbar (1.13.0)
|
|
227
273
|
rubyzip (2.4.1)
|
|
228
|
-
securerandom (0.
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
274
|
+
securerandom (0.4.1)
|
|
275
|
+
stringio (3.2.0)
|
|
276
|
+
thor (1.5.0)
|
|
277
|
+
timeout (0.6.1)
|
|
278
|
+
tomlrb (2.0.4)
|
|
279
|
+
tsort (0.2.0)
|
|
232
280
|
tzinfo (2.0.6)
|
|
233
281
|
concurrent-ruby (~> 1.0)
|
|
234
|
-
unicode-display_width (2.
|
|
235
|
-
|
|
282
|
+
unicode-display_width (3.2.0)
|
|
283
|
+
unicode-emoji (~> 4.1)
|
|
284
|
+
unicode-emoji (4.2.0)
|
|
285
|
+
useragent (0.16.11)
|
|
286
|
+
websocket-driver (0.8.0)
|
|
236
287
|
base64
|
|
237
288
|
websocket-extensions (>= 0.1.0)
|
|
238
289
|
websocket-extensions (0.1.5)
|
|
239
290
|
with_env (1.1.0)
|
|
240
291
|
xml-simple (1.1.9)
|
|
241
292
|
rexml
|
|
242
|
-
zeitwerk (2.
|
|
293
|
+
zeitwerk (2.7.5)
|
|
243
294
|
|
|
244
295
|
PLATFORMS
|
|
245
296
|
arm64-darwin-22
|
|
@@ -248,18 +299,13 @@ PLATFORMS
|
|
|
248
299
|
|
|
249
300
|
DEPENDENCIES
|
|
250
301
|
appraisal (~> 2.5.0)
|
|
251
|
-
erb (< 6)
|
|
252
302
|
license_finder (~> 7.0)
|
|
253
|
-
net-imap (< 0.5.0)
|
|
254
|
-
nokogiri (< 1.18.10)
|
|
255
303
|
pry (>= 0.14.2)
|
|
256
304
|
pry-byebug (= 3.10.1)
|
|
257
|
-
rails (>=
|
|
305
|
+
rails (>= 7.1, < 8.2)
|
|
258
306
|
rake (~> 13.0)
|
|
259
307
|
rspec (~> 3.0)
|
|
260
308
|
rubocop-powerhome!
|
|
261
|
-
securerandom (< 0.4.0)
|
|
262
|
-
zeitwerk (< 2.7.0)
|
|
263
309
|
|
|
264
310
|
BUNDLED WITH
|
|
265
311
|
2.5.23
|
data/config/default.yml
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
# rubocop-powerhome bundles these extensions. Listing them here loads each
|
|
2
|
+
# one as a RuboCop plugin, so their own default configuration is applied
|
|
3
|
+
# before the overrides below.
|
|
4
|
+
plugins:
|
|
5
|
+
- rubocop-performance
|
|
6
|
+
- rubocop-rails
|
|
7
|
+
- rubocop-rake
|
|
8
|
+
- rubocop-rspec
|
|
9
|
+
|
|
1
10
|
AllCops:
|
|
2
11
|
TargetRubyVersion: 3.0
|
|
3
12
|
NewCops: enable
|
|
@@ -23,7 +32,10 @@ Lint/ScriptPermission:
|
|
|
23
32
|
Enabled: false
|
|
24
33
|
|
|
25
34
|
Metrics/BlockLength:
|
|
26
|
-
|
|
35
|
+
# Listing AllowedMethods replaces RuboCop's default rather than merging
|
|
36
|
+
# with it, so `refine` is repeated here.
|
|
37
|
+
AllowedMethods:
|
|
38
|
+
- refine
|
|
27
39
|
- describe
|
|
28
40
|
- context
|
|
29
41
|
|
data/docs/README.md
CHANGED
|
@@ -16,15 +16,17 @@ And then execute:
|
|
|
16
16
|
|
|
17
17
|
## Usage
|
|
18
18
|
|
|
19
|
-
Add
|
|
19
|
+
Add the plugin to your `.rubocop.yml`:
|
|
20
20
|
|
|
21
21
|
```yml
|
|
22
|
-
|
|
22
|
+
plugins:
|
|
23
23
|
- rubocop-powerhome
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
That's it! You can override the standard configuration after that.
|
|
27
27
|
|
|
28
|
+
rubocop-powerhome is a [RuboCop plugin](https://docs.rubocop.org/rubocop/plugin_migration_guide.html). It also loads rubocop-performance, rubocop-rails, rubocop-rake and rubocop-rspec as plugins, with their own default configuration, so you don't need to list them. Listing `rubocop-powerhome` under `require:` still works but RuboCop prints a deprecation warning.
|
|
29
|
+
|
|
28
30
|
It's recommended that you set `AllCops/TargetRubyVersion` in your project because some cops are Ruby version-dependent. See more [here](https://docs.rubocop.org/rubocop/configuration.html#setting-the-target-ruby-version).
|
|
29
31
|
|
|
30
32
|
## Development
|
data/gemfiles/rails_7_1.gemfile
CHANGED