Skip to content

Commit 1e8df6f

Browse files
committed
Cut 2.21.0
1 parent dfa9ccc commit 1e8df6f

File tree

7 files changed

+267
-28
lines changed

7 files changed

+267
-28
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.21.0 (2023-09-09)
13+
1214
### New features
1315

1416
* [#1075](https://github.com/rubocop/rubocop-rails/issues/1075): Add new `Rails/SelectMap` cop that checks for uses of `select(:column_name)` with `map(&:column_name)`. ([@koic][])

config/default.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ Rails/DangerousColumnNames:
313313
Avoid dangerous column names.
314314
Enabled: pending
315315
Severity: warning
316-
VersionAdded: '<<next>>'
316+
VersionAdded: '2.21'
317317
Include:
318318
- 'db/**/*.rb'
319319

@@ -484,7 +484,7 @@ Rails/FindBy:
484484
StyleGuide: 'https://rails.rubystyle.guide#find_by'
485485
Enabled: true
486486
VersionAdded: '0.30'
487-
VersionChanged: '<<next>>'
487+
VersionChanged: '2.21'
488488
IgnoreWhereFirst: true
489489

490490
Rails/FindById:
@@ -501,7 +501,7 @@ Rails/FindEach:
501501
Enabled: true
502502
Safe: false
503503
VersionAdded: '0.30'
504-
VersionChanged: '<<next>>'
504+
VersionChanged: '2.21'
505505
AllowedMethods:
506506
# Methods that don't work well with `find_each`.
507507
- order
@@ -801,7 +801,7 @@ Rails/RedundantActiveRecordAllMethod:
801801
StyleGuide: 'https://rails.rubystyle.guide/#redundant-all'
802802
Enabled: pending
803803
Safe: false
804-
VersionAdded: "<<next>>"
804+
VersionAdded: '2.21'
805805

806806
Rails/RedundantAllowNil:
807807
Description: >-
@@ -987,7 +987,7 @@ Rails/SelectMap:
987987
Description: 'Checks for uses of `select(:column_name)` with `map(&:column_name)`.'
988988
Enabled: pending
989989
Safe: false
990-
VersionAdded: '<<next>>'
990+
VersionAdded: '2.21'
991991

992992
Rails/ShortI18n:
993993
Description: 'Use the short form of the I18n methods: `t` instead of `translate` and `l` instead of `localize`.'
@@ -1159,7 +1159,7 @@ Rails/UnusedRenderContent:
11591159
Description: 'Do not specify body content for a response with a non-content status code.'
11601160
Enabled: pending
11611161
Severity: warning
1162-
VersionAdded: '<<next>>'
1162+
VersionAdded: '2.21'
11631163

11641164
Rails/Validation:
11651165
Description: 'Use validates :attribute, hash of validations.'

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.21'
66
nav:
77
- modules/ROOT/nav.adoc

docs/modules/ROOT/pages/cops.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ based on the https://rails.rubystyle.guide/[Rails Style Guide].
4040
* xref:cops_rails.adoc#railscompactblank[Rails/CompactBlank]
4141
* xref:cops_rails.adoc#railscontenttag[Rails/ContentTag]
4242
* xref:cops_rails.adoc#railscreatetablewithtimestamps[Rails/CreateTableWithTimestamps]
43+
* xref:cops_rails.adoc#railsdangerouscolumnnames[Rails/DangerousColumnNames]
4344
* xref:cops_rails.adoc#railsdate[Rails/Date]
4445
* xref:cops_rails.adoc#railsdefaultscope[Rails/DefaultScope]
4546
* xref:cops_rails.adoc#railsdelegate[Rails/Delegate]
@@ -95,6 +96,7 @@ based on the https://rails.rubystyle.guide/[Rails Style Guide].
9596
* xref:cops_rails.adoc#railspresent[Rails/Present]
9697
* xref:cops_rails.adoc#railsrakeenvironment[Rails/RakeEnvironment]
9798
* xref:cops_rails.adoc#railsreadwriteattribute[Rails/ReadWriteAttribute]
99+
* xref:cops_rails.adoc#railsredundantactiverecordallmethod[Rails/RedundantActiveRecordAllMethod]
98100
* xref:cops_rails.adoc#railsredundantallownil[Rails/RedundantAllowNil]
99101
* xref:cops_rails.adoc#railsredundantforeignkey[Rails/RedundantForeignKey]
100102
* xref:cops_rails.adoc#railsredundantpresencevalidationonbelongsto[Rails/RedundantPresenceValidationOnBelongsTo]
@@ -118,6 +120,7 @@ based on the https://rails.rubystyle.guide/[Rails Style Guide].
118120
* xref:cops_rails.adoc#railssavebang[Rails/SaveBang]
119121
* xref:cops_rails.adoc#railsschemacomment[Rails/SchemaComment]
120122
* xref:cops_rails.adoc#railsscopeargs[Rails/ScopeArgs]
123+
* xref:cops_rails.adoc#railsselectmap[Rails/SelectMap]
121124
* xref:cops_rails.adoc#railsshorti18n[Rails/ShortI18n]
122125
* xref:cops_rails.adoc#railsskipsmodelvalidations[Rails/SkipsModelValidations]
123126
* xref:cops_rails.adoc#railssquishedsqlheredocs[Rails/SquishedSQLHeredocs]
@@ -134,6 +137,7 @@ based on the https://rails.rubystyle.guide/[Rails Style Guide].
134137
* xref:cops_rails.adoc#railsuniquevalidationwithoutindex[Rails/UniqueValidationWithoutIndex]
135138
* xref:cops_rails.adoc#railsunknownenv[Rails/UnknownEnv]
136139
* xref:cops_rails.adoc#railsunusedignoredcolumns[Rails/UnusedIgnoredColumns]
140+
* xref:cops_rails.adoc#railsunusedrendercontent[Rails/UnusedRenderContent]
137141
* xref:cops_rails.adoc#railsvalidation[Rails/Validation]
138142
* xref:cops_rails.adoc#railswhereequals[Rails/WhereEquals]
139143
* xref:cops_rails.adoc#railswhereexists[Rails/WhereExists]

0 commit comments

Comments
 (0)