Skip to content

Commit ddcc231

Browse files
committed
Cut 2.32.0
1 parent 9e3d25e commit ddcc231

File tree

5 files changed

+50
-36
lines changed

5 files changed

+50
-36
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
## master (unreleased)
1111

12+
## 2.32.0 (2025-05-17)
13+
1214
### Bug fixes
1315

1416
* [#1475](https://github.com/rubocop/rubocop-rails/pull/1475): Fix `Rails/TimeZone` cop error on invalid string literal encoding. ([@viralpraxis][])

docs/antora.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ name: rubocop-rails
22
title: RuboCop Rails
33
# We always provide version without patch here (e.g. 1.1),
44
# as patch versions should not appear in the docs.
5-
version: ~
5+
version: '2.32'
66
nav:
77
- modules/ROOT/nav.adoc

docs/modules/ROOT/pages/cops_rails.adoc

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ skip_after_filter :do_stuff
173173
| `action`, `filter`
174174
175175
| Include
176-
| `+app/controllers/**/*.rb+`, `+app/mailers/**/*.rb+`
176+
| `+**/app/controllers/**/*.rb+`, `+**/app/mailers/**/*.rb+`
177177
| Array
178178
|===
179179
@@ -236,7 +236,7 @@ def destroy; end
236236
| Array
237237
238238
| Include
239-
| `+app/controllers/**/*.rb+`
239+
| `+**/app/controllers/**/*.rb+`
240240
| Array
241241
|===
242242
@@ -315,7 +315,7 @@ end
315315
| Name | Default value | Configurable values
316316
317317
| Include
318-
| `+app/models/**/*.rb+`
318+
| `+**/app/models/**/*.rb+`
319319
| Array
320320
|===
321321
@@ -374,7 +374,7 @@ end
374374
| String
375375
376376
| Include
377-
| `+app/models/**/*.rb+`
377+
| `+**/app/models/**/*.rb+`
378378
| Array
379379
|===
380380
@@ -870,7 +870,7 @@ end
870870
| Name | Default value | Configurable values
871871
872872
| Include
873-
| `+app/models/**/*+`
873+
| `+**/app/models/**/*+`
874874
| Array
875875
|===
876876
@@ -1256,7 +1256,7 @@ tag(name, class: 'classname')
12561256
| Name | Default value | Configurable values
12571257
12581258
| Exclude
1259-
| `+app/models/**/*.rb+`, `+config/**/*.rb+`
1259+
| `+**/app/models/**/*.rb+`, `+**/config/**/*.rb+`
12601260
| Array
12611261
|===
12621262
@@ -1631,7 +1631,7 @@ delegate :bar, to: :foo, prefix: true
16311631
| Boolean
16321632
16331633
| Exclude
1634-
| `+app/controllers/**/*.rb+`
1634+
| `+**/app/controllers/**/*.rb+`
16351635
| Array
16361636
|===
16371637
@@ -2070,7 +2070,7 @@ enum status: { active: 0, archived: 1 }
20702070
| Name | Default value | Configurable values
20712071
20722072
| Include
2073-
| `+app/models/**/*.rb+`
2073+
| `+**/app/models/**/*.rb+`
20742074
| Array
20752075
|===
20762076
@@ -2124,7 +2124,7 @@ enum :status, { active: 0, archived: 1 }, prefix: true
21242124
| String
21252125
21262126
| Include
2127-
| `+app/models/**/*.rb+`
2127+
| `+**/app/models/**/*.rb+`
21282128
| Array
21292129
|===
21302130
@@ -2180,7 +2180,7 @@ enum status: [:active, :archived]
21802180
| Name | Default value | Configurable values
21812181
21822182
| Include
2183-
| `+app/models/**/*.rb+`
2183+
| `+**/app/models/**/*.rb+`
21842184
| Array
21852185
|===
21862186
@@ -2322,11 +2322,11 @@ ENV["FOO"] = "bar"
23222322
| Name | Default value | Configurable values
23232323
23242324
| Include
2325-
| `+app/**/*.rb+`, `+config/initializers/**/*.rb+`, `+lib/**/*.rb+`
2325+
| `+**/app/**/*.rb+`, `+**/config/initializers/**/*.rb+`, `+**/lib/**/*.rb+`
23262326
| Array
23272327
23282328
| Exclude
2329-
| `+lib/**/*.rake+`
2329+
| `+**/lib/**/*.rake+`
23302330
| Array
23312331
23322332
| AllowReads
@@ -2384,11 +2384,11 @@ raise 'a bad error has happened'
23842384
| Name | Default value | Configurable values
23852385
23862386
| Include
2387-
| `+app/**/*.rb+`, `+config/**/*.rb+`, `+lib/**/*.rb+`
2387+
| `+**/app/**/*.rb+`, `+**/config/**/*.rb+`, `+**/lib/**/*.rb+`
23882388
| Array
23892389
23902390
| Exclude
2391-
| `+lib/**/*.rake+`
2391+
| `+**/lib/**/*.rake+`
23922392
| Array
23932393
|===
23942394
@@ -2762,7 +2762,7 @@ Checks for the use of the has_and_belongs_to_many macro.
27622762
| Name | Default value | Configurable values
27632763
27642764
| Include
2765-
| `+app/models/**/*.rb+`
2765+
| `+**/app/models/**/*.rb+`
27662766
| Array
27672767
|===
27682768
@@ -2826,7 +2826,7 @@ end
28262826
| Name | Default value | Configurable values
28272827
28282828
| Include
2829-
| `+app/models/**/*.rb+`
2829+
| `+**/app/models/**/*.rb+`
28302830
| Array
28312831
|===
28322832
@@ -2889,7 +2889,7 @@ end
28892889
| Name | Default value | Configurable values
28902890
28912891
| Include
2892-
| `+app/helpers/**/*.rb+`
2892+
| `+**/app/helpers/**/*.rb+`
28932893
| Array
28942894
|===
28952895
@@ -3105,7 +3105,7 @@ end
31053105
| `lazy`, `explicit`
31063106
31073107
| Include
3108-
| `+app/controllers/**/*.rb+`
3108+
| `+**/app/controllers/**/*.rb+`
31093109
| Array
31103110
|===
31113111
@@ -3357,7 +3357,7 @@ end
33573357
| Name | Default value | Configurable values
33583358
33593359
| Include
3360-
| `+app/controllers/**/*.rb+`, `+app/mailers/**/*.rb+`
3360+
| `+**/app/controllers/**/*.rb+`, `+**/app/mailers/**/*.rb+`
33613361
| Array
33623362
|===
33633363
@@ -3656,7 +3656,7 @@ end
36563656
| Boolean
36573657
36583658
| Include
3659-
| `+app/models/**/*.rb+`
3659+
| `+**/app/models/**/*.rb+`
36603660
| Array
36613661
|===
36623662
@@ -3778,7 +3778,7 @@ end
37783778
| Name | Default value | Configurable values
37793779
37803780
| Include
3781-
| `+app/controllers/**/*.rb+`, `+app/mailers/**/*.rb+`
3781+
| `+**/app/controllers/**/*.rb+`, `+**/app/mailers/**/*.rb+`
37823782
| Array
37833783
|===
37843784
@@ -3881,7 +3881,7 @@ end
38813881
| Name | Default value | Configurable values
38823882
38833883
| Include
3884-
| `+app/mailers/**/*.rb+`
3884+
| `+**/app/mailers/**/*.rb+`
38853885
| Array
38863886
|===
38873887
@@ -3932,7 +3932,7 @@ match 'photos/:id', to: 'photos#show', via: :all
39323932
| Name | Default value | Configurable values
39333933
39343934
| Include
3935-
| `config/routes.rb`, `+config/routes/**/*.rb+`
3935+
| `+**/config/routes.rb+`, `+**/config/routes/**/*.rb+`
39363936
| Array
39373937
|===
39383938
@@ -4024,7 +4024,7 @@ get '/other_path', to: 'users#index'
40244024
| String
40254025
40264026
| Include
4027-
| `config/routes.rb`, `+config/routes/**/*.rb+`
4027+
| `+**/config/routes.rb+`, `+**/config/routes/**/*.rb+`
40284028
| Array
40294029
|===
40304030
@@ -4221,7 +4221,7 @@ Rails.logger.debug 'A debug message'
42214221
| Name | Default value | Configurable values
42224222
42234223
| Include
4224-
| `+app/**/*.rb+`, `+config/**/*.rb+`, `+db/**/*.rb+`, `+lib/**/*.rb+`
4224+
| `+**/app/**/*.rb+`, `+**/config/**/*.rb+`, `+db/**/*.rb+`, `+**/lib/**/*.rb+`
42254225
| Array
42264226
|===
42274227
@@ -4798,7 +4798,7 @@ end
47984798
| Array
47994799
48004800
| Exclude
4801-
| `+lib/capistrano/tasks/**/*.rake+`
4801+
| `+**/lib/capistrano/tasks/**/*.rake+`
48024802
| Array
48034803
|===
48044804
@@ -4859,7 +4859,7 @@ end
48594859
| Name | Default value | Configurable values
48604860
48614861
| Include
4862-
| `+app/models/**/*.rb+`
4862+
| `+**/app/models/**/*.rb+`
48634863
| Array
48644864
|===
48654865
@@ -4986,7 +4986,7 @@ validates :x, length: { is: 5 }, allow_nil: true, allow_blank: false
49864986
| Name | Default value | Configurable values
49874987
49884988
| Include
4989-
| `+app/models/**/*.rb+`
4989+
| `+**/app/models/**/*.rb+`
49904990
| Array
49914991
|===
49924992
@@ -6351,7 +6351,7 @@ scope :something, -> { where(something: true) }
63516351
| Name | Default value | Configurable values
63526352
63536353
| Include
6354-
| `+app/models/**/*.rb+`
6354+
| `+**/app/models/**/*.rb+`
63556355
| Array
63566356
|===
63576357
@@ -6700,7 +6700,7 @@ params.expect(user: [:name, :age])
67006700
| Name | Default value | Configurable values
67016701
67026702
| Include
6703-
| `+app/controllers/**/*.rb+`
6703+
| `+**/app/controllers/**/*.rb+`
67046704
| Array
67056705
|===
67066706
@@ -6756,7 +6756,7 @@ self.table_name = :some_other_name
67566756
| Name | Default value | Configurable values
67576757
67586758
| Include
6759-
| `+app/models/**/*.rb+`
6759+
| `+**/app/models/**/*.rb+`
67606760
| Array
67616761
|===
67626762
@@ -7320,7 +7320,7 @@ validates :account, length: { minimum: MIN_LENGTH }
73207320
| Name | Default value | Configurable values
73217321
73227322
| Include
7323-
| `+app/models/**/*.rb+`
7323+
| `+**/app/models/**/*.rb+`
73247324
| Array
73257325
|===
73267326
@@ -7418,7 +7418,7 @@ end
74187418
| Name | Default value | Configurable values
74197419
74207420
| Include
7421-
| `+app/models/**/*.rb+`
7421+
| `+**/app/models/**/*.rb+`
74227422
| Array
74237423
|===
74247424
@@ -7521,7 +7521,7 @@ validates :foo, uniqueness: true
75217521
| Name | Default value | Configurable values
75227522
75237523
| Include
7524-
| `+app/models/**/*.rb+`
7524+
| `+**/app/models/**/*.rb+`
75257525
| Array
75267526
|===
75277527

lib/rubocop/rails/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module RuboCop
44
module Rails
55
# This module holds the RuboCop Rails version information.
66
module Version
7-
STRING = '2.31.0'
7+
STRING = '2.32.0'
88

99
def self.document_version
1010
STRING.match('\d+\.\d+').to_s

relnotes/v2.32.0.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
### Bug fixes
2+
3+
* [#1475](https://github.com/rubocop/rubocop-rails/pull/1475): Fix `Rails/TimeZone` cop error on invalid string literal encoding. ([@viralpraxis][])
4+
* [#1477](https://github.com/rubocop/rubocop-rails/issues/1477): Fix an error for `Rails/SchemaComment` when the comment is passed as a local variable. ([@earlopain][])
5+
6+
### Changes
7+
8+
* [#234](https://github.com/rubocop/rubocop-rails/issues/234): Use globs that are compatible with Engine or Packwerk. ([@tdeo][])
9+
10+
[@viralpraxis]: https://github.com/viralpraxis
11+
[@earlopain]: https://github.com/earlopain
12+
[@tdeo]: https://github.com/tdeo

0 commit comments

Comments
 (0)