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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 116032c1176b8de748e1bd98171e8c41f1236aa10afe431146398082f0b5b8f1
4
- data.tar.gz: edebb9d0258dfbcd4350553b2c1007ebcba7abc5eb8ec12a76c42862f8ccaf80
3
+ metadata.gz: 2c15cdfc506d7635ac373cdf73fdffef23d19f3e8162f2c7ad4e5250018a525b
4
+ data.tar.gz: 9bb8a5e0f43b76480b3b775e8e8ddd5809df601765befeab9a80eda08136d521
5
5
  SHA512:
6
- metadata.gz: a589cc11e50f492030dd5d550bea8046d550d1f2d25253182096d82ad8f51959bca916ace478cc84bc18da409fb0f89faf79bc270b01fab5df7702d80f5ae69a
7
- data.tar.gz: 1b24eea480a29834be68fbf19662ac1e3e812c080a70d4ea34d7ed0b95d6662abe6bd89fa46bca211111e2a490b4a7fad54d3822a5cece46a53352273a031597
6
+ metadata.gz: 801a2989e6299f66f87d2d9161723e51aa5d26c50b0041b4f949fbdd0620c05a771803a7e8bfc0f4026476bce7a6861509515aed3f9d42d1605862f5c94f3088
7
+ data.tar.gz: 6202ba5bcabd1ed957e76330ee3f9c273ada82c4f1d0f9bb50bafa7107383f3f718519841c13bf8c5f103a5e6f3d39f9f5093181c940d77da6a9ebae260e932e
data/.rubocop.yml CHANGED
@@ -1,4 +1,4 @@
1
- require:
1
+ plugins:
2
2
  - rubocop-powerhome
3
3
 
4
4
  Naming/FileName:
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
- ## [Unreleased]
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
@@ -4,9 +4,3 @@ source "https://rubygems.org"
4
4
 
5
5
  # Specify your gem's dependencies in rubocop-powerhome.gemspec
6
6
  gemspec
7
-
8
- gem "erb", "< 6"
9
- gem "net-imap", "< 0.5.0"
10
- gem "nokogiri", "< 1.18.10"
11
- gem "securerandom", "< 0.4.0"
12
- gem "zeitwerk", "< 2.7.0"
data/Gemfile.lock CHANGED
@@ -1,103 +1,123 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubocop-powerhome (0.6.1)
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.0.8.7)
15
- actionpack (= 7.0.8.7)
16
- activesupport (= 7.0.8.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
- actionmailbox (7.0.8.7)
20
- actionpack (= 7.0.8.7)
21
- activejob (= 7.0.8.7)
22
- activerecord (= 7.0.8.7)
23
- activestorage (= 7.0.8.7)
24
- activesupport (= 7.0.8.7)
25
- mail (>= 2.7.1)
26
- net-imap
27
- net-pop
28
- net-smtp
29
- actionmailer (7.0.8.7)
30
- actionpack (= 7.0.8.7)
31
- actionview (= 7.0.8.7)
32
- activejob (= 7.0.8.7)
33
- activesupport (= 7.0.8.7)
34
- mail (~> 2.5, >= 2.5.4)
35
- net-imap
36
- net-pop
37
- net-smtp
38
- rails-dom-testing (~> 2.0)
39
- actionpack (7.0.8.7)
40
- actionview (= 7.0.8.7)
41
- activesupport (= 7.0.8.7)
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.0)
45
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
46
- actiontext (7.0.8.7)
47
- actionpack (= 7.0.8.7)
48
- activerecord (= 7.0.8.7)
49
- activestorage (= 7.0.8.7)
50
- activesupport (= 7.0.8.7)
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.0.8.7)
54
- activesupport (= 7.0.8.7)
54
+ actionview (7.2.3.1)
55
+ activesupport (= 7.2.3.1)
55
56
  builder (~> 3.1)
56
- erubi (~> 1.4)
57
- rails-dom-testing (~> 2.0)
58
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
59
- activejob (7.0.8.7)
60
- activesupport (= 7.0.8.7)
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.0.8.7)
63
- activesupport (= 7.0.8.7)
64
- activerecord (7.0.8.7)
65
- activemodel (= 7.0.8.7)
66
- activesupport (= 7.0.8.7)
67
- activestorage (7.0.8.7)
68
- actionpack (= 7.0.8.7)
69
- activejob (= 7.0.8.7)
70
- activerecord (= 7.0.8.7)
71
- activesupport (= 7.0.8.7)
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
- mini_mime (>= 1.1.0)
74
- activesupport (7.0.8.7)
75
- concurrent-ruby (~> 1.0, >= 1.0.2)
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
- minitest (>= 5.1)
78
- tzinfo (~> 2.0)
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.2)
84
- base64 (0.2.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.5)
100
+ concurrent-ruby (1.3.6)
101
+ connection_pool (3.0.2)
89
102
  crass (1.0.6)
90
- csv (3.3.2)
91
- date (3.4.1)
92
- diff-lcs (1.5.1)
93
- erb (5.0.2)
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.2.1)
109
+ globalid (1.3.0)
96
110
  activesupport (>= 6.1)
97
- i18n (1.14.7)
111
+ i18n (1.14.8)
98
112
  concurrent-ruby (~> 1.0)
99
- json (2.9.1)
100
- language_server-protocol (3.17.0.3)
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
- loofah (2.24.0)
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.8.1)
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.4)
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.25.4)
123
- net-imap (0.4.22)
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.0)
152
+ net-smtp (0.5.1)
131
153
  net-protocol
132
- nio4r (2.7.4)
133
- nokogiri (1.18.9)
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.18.9-arm64-darwin)
158
+ nokogiri (1.19.2-arm64-darwin)
137
159
  racc (~> 1.4)
138
- nokogiri (1.18.9-x86_64-linux-gnu)
160
+ nokogiri (1.19.2-x86_64-linux-gnu)
139
161
  racc (~> 1.4)
140
- parallel (1.26.3)
141
- parser (3.3.9.0)
162
+ parallel (1.28.0)
163
+ parser (3.3.11.1)
142
164
  ast (~> 2.4.1)
143
165
  racc
144
- prism (1.4.0)
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 (2.2.10)
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
- rails (7.0.8.7)
156
- actioncable (= 7.0.8.7)
157
- actionmailbox (= 7.0.8.7)
158
- actionmailer (= 7.0.8.7)
159
- actionpack (= 7.0.8.7)
160
- actiontext (= 7.0.8.7)
161
- actionview (= 7.0.8.7)
162
- activejob (= 7.0.8.7)
163
- activemodel (= 7.0.8.7)
164
- activerecord (= 7.0.8.7)
165
- activestorage (= 7.0.8.7)
166
- activesupport (= 7.0.8.7)
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.0.8.7)
169
- rails-dom-testing (2.2.0)
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.6.2)
174
- loofah (~> 2.21)
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.0.8.7)
177
- actionpack (= 7.0.8.7)
178
- activesupport (= 7.0.8.7)
179
- method_source
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
- zeitwerk (~> 2.5)
216
+ thor (~> 1.0, >= 1.2.2)
217
+ tsort (>= 0.2)
218
+ zeitwerk (~> 2.6)
183
219
  rainbow (3.1.1)
184
- rake (13.2.1)
185
- regexp_parser (2.10.0)
186
- rexml (3.4.0)
187
- rspec (3.13.0)
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.2)
233
+ rspec-core (3.13.6)
192
234
  rspec-support (~> 3.13.0)
193
- rspec-expectations (3.13.3)
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.2)
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.2)
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.48.0)
253
+ rubocop-ast (1.49.1)
212
254
  parser (>= 3.3.7.2)
213
- prism (~> 1.4)
214
- rubocop-performance (1.23.1)
215
- rubocop (>= 1.48.1, < 2.0)
216
- rubocop-ast (>= 1.31.1, < 2.0)
217
- rubocop-rails (2.29.1)
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.52.0, < 2.0)
221
- rubocop-ast (>= 1.31.1, < 2.0)
222
- rubocop-rake (0.6.0)
223
- rubocop (~> 1.0)
224
- rubocop-rspec (3.4.0)
225
- rubocop (~> 1.61)
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.3.2)
229
- thor (1.3.2)
230
- timeout (0.4.3)
231
- tomlrb (2.0.3)
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.6.0)
235
- websocket-driver (0.7.7)
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.6.18)
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 (>= 6.0.6.1, < 8)
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
- IgnoredMethods:
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 a `require` line to your `.rubocop.yml`:
19
+ Add the plugin to your `.rubocop.yml`:
20
20
 
21
21
  ```yml
22
- require:
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
@@ -4,11 +4,6 @@
4
4
 
5
5
  source "https://rubygems.org"
6
6
 
7
- gem "erb", "< 6"
8
- gem "net-imap", "< 0.5.0"
9
- gem "nokogiri", "< 1.18.10"
10
7
  gem "rails", "7.1.5.2"
11
- gem "securerandom", "< 0.4.0"
12
- gem "zeitwerk", "< 2.7.0"
13
8
 
14
9
  gemspec path: "../"