Skip to content

Commit 10e57c3

Browse files
committed
Cut 2.16.0
1 parent 50792ea commit 10e57c3

File tree

7 files changed

+335
-10
lines changed

7 files changed

+335
-10
lines changed

CHANGELOG.md

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

33
## master (unreleased)
44

5+
## 2.16.0 (2022-09-09)
6+
57
### New features
68

79
* [#714](https://github.com/rubocop/rubocop-rails/pull/714): Add new `Rails/FreezeTime` cop. ([@ydah][])

config/default.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Rails/ActionControllerFlashBeforeRender:
7171
Reference: 'https://api.rubyonrails.org/classes/ActionController/FlashBeforeRender.html'
7272
Enabled: 'pending'
7373
SafeAutocorrect: false
74-
VersionAdded: '<<next>>'
74+
VersionAdded: '2.16'
7575

7676
Rails/ActionControllerTestCase:
7777
Description: 'Use `ActionDispatch::IntegrationTest` instead of `ActionController::TestCase`.'
@@ -136,7 +136,7 @@ Rails/ActiveSupportOnLoad:
136136
- 'https://api.rubyonrails.org/classes/ActiveSupport/LazyLoadHooks.html'
137137
- 'https://guides.rubyonrails.org/engines.html#available-load-hooks'
138138
SafeAutoCorrect: false
139-
VersionAdded: '<<next>>'
139+
VersionAdded: '2.16'
140140

141141
Rails/AddColumnIndex:
142142
Description: >-
@@ -468,7 +468,7 @@ Rails/FreezeTime:
468468
Description: 'Prefer `freeze_time` over `travel_to` with an argument of the current time.'
469469
StyleGuide: 'https://rails.rubystyle.guide/#freeze-time'
470470
Enabled: pending
471-
VersionAdded: '<<next>>'
471+
VersionAdded: '2.16'
472472
SafeAutoCorrect: false
473473

474474
Rails/HasAndBelongsToMany:
@@ -845,7 +845,7 @@ Rails/RootJoinChain:
845845
Rails/RootPathnameMethods:
846846
Description: 'Use `Rails.root` IO methods instead of passing it to `File`.'
847847
Enabled: pending
848-
VersionAdded: '<<next>>'
848+
VersionAdded: '2.16'
849849

850850
Rails/RootPublicPath:
851851
Description: "Favor `Rails.public_path` over `Rails.root` with `'public'`."
@@ -1003,13 +1003,13 @@ Rails/ToSWithArgument:
10031003
Description: 'Identifies passing any argument to `#to_s`.'
10041004
Enabled: pending
10051005
Safe: false
1006-
VersionAdded: '<<next>>'
1006+
VersionAdded: '2.16'
10071007

10081008
Rails/TopLevelHashWithIndifferentAccess:
10091009
Description: 'Identifies top-level `HashWithIndifferentAccess`.'
10101010
Reference: 'https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#top-level-hashwithindifferentaccess-is-soft-deprecated'
10111011
Enabled: pending
1012-
VersionAdded: '<<next>>'
1012+
VersionAdded: '2.16'
10131013

10141014
Rails/TransactionExitStatement:
10151015
Description: 'Avoid the usage of `return`, `break` and `throw` in transaction blocks.'
@@ -1081,7 +1081,7 @@ Rails/WhereMissing:
10811081
Description: 'Use `where.missing(...)` to find missing relationship records.'
10821082
StyleGuide: 'https://rails.rubystyle.guide/#finding-missing-relationship-records'
10831083
Enabled: pending
1084-
VersionAdded: '<<next>>'
1084+
VersionAdded: '2.16'
10851085

10861086
Rails/WhereNot:
10871087
Description: 'Use `where.not(...)` instead of manually constructing negated SQL in `where`.'

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

docs/modules/ROOT/pages/cops.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ based on the https://rails.rubystyle.guide/[Rails Style Guide].
1616

1717
=== Department xref:cops_rails.adoc[Rails]
1818

19+
* xref:cops_rails.adoc#railsactioncontrollerflashbeforerender[Rails/ActionControllerFlashBeforeRender]
1920
* xref:cops_rails.adoc#railsactioncontrollertestcase[Rails/ActionControllerTestCase]
2021
* xref:cops_rails.adoc#railsactionfilter[Rails/ActionFilter]
2122
* xref:cops_rails.adoc#railsactiverecordaliases[Rails/ActiveRecordAliases]
2223
* xref:cops_rails.adoc#railsactiverecordcallbacksorder[Rails/ActiveRecordCallbacksOrder]
2324
* xref:cops_rails.adoc#railsactiverecordoverride[Rails/ActiveRecordOverride]
2425
* xref:cops_rails.adoc#railsactivesupportaliases[Rails/ActiveSupportAliases]
26+
* xref:cops_rails.adoc#railsactivesupportonload[Rails/ActiveSupportOnLoad]
2527
* xref:cops_rails.adoc#railsaddcolumnindex[Rails/AddColumnIndex]
2628
* xref:cops_rails.adoc#railsaftercommitoverride[Rails/AfterCommitOverride]
2729
* xref:cops_rails.adoc#railsapplicationcontroller[Rails/ApplicationController]
@@ -58,6 +60,7 @@ based on the https://rails.rubystyle.guide/[Rails Style Guide].
5860
* xref:cops_rails.adoc#railsfindby[Rails/FindBy]
5961
* xref:cops_rails.adoc#railsfindbyid[Rails/FindById]
6062
* xref:cops_rails.adoc#railsfindeach[Rails/FindEach]
63+
* xref:cops_rails.adoc#railsfreezetime[Rails/FreezeTime]
6164
* xref:cops_rails.adoc#railshasandbelongstomany[Rails/HasAndBelongsToMany]
6265
* xref:cops_rails.adoc#railshasmanyorhasonedependent[Rails/HasManyOrHasOneDependent]
6366
* xref:cops_rails.adoc#railshelperinstancevariable[Rails/HelperInstanceVariable]
@@ -105,6 +108,7 @@ based on the https://rails.rubystyle.guide/[Rails Style Guide].
105108
* xref:cops_rails.adoc#railsreversiblemigration[Rails/ReversibleMigration]
106109
* xref:cops_rails.adoc#railsreversiblemigrationmethoddefinition[Rails/ReversibleMigrationMethodDefinition]
107110
* xref:cops_rails.adoc#railsrootjoinchain[Rails/RootJoinChain]
111+
* xref:cops_rails.adoc#railsrootpathnamemethods[Rails/RootPathnameMethods]
108112
* xref:cops_rails.adoc#railsrootpublicpath[Rails/RootPublicPath]
109113
* xref:cops_rails.adoc#railssafenavigation[Rails/SafeNavigation]
110114
* xref:cops_rails.adoc#railssafenavigationwithblank[Rails/SafeNavigationWithBlank]
@@ -119,6 +123,8 @@ based on the https://rails.rubystyle.guide/[Rails Style Guide].
119123
* xref:cops_rails.adoc#railstimezone[Rails/TimeZone]
120124
* xref:cops_rails.adoc#railstimezoneassignment[Rails/TimeZoneAssignment]
121125
* xref:cops_rails.adoc#railstoformatteds[Rails/ToFormattedS]
126+
* xref:cops_rails.adoc#railstoswithargument[Rails/ToSWithArgument]
127+
* xref:cops_rails.adoc#railstoplevelhashwithindifferentaccess[Rails/TopLevelHashWithIndifferentAccess]
122128
* xref:cops_rails.adoc#railstransactionexitstatement[Rails/TransactionExitStatement]
123129
* xref:cops_rails.adoc#railsuniqbeforepluck[Rails/UniqBeforePluck]
124130
* xref:cops_rails.adoc#railsuniquevalidationwithoutindex[Rails/UniqueValidationWithoutIndex]
@@ -127,6 +133,7 @@ based on the https://rails.rubystyle.guide/[Rails Style Guide].
127133
* xref:cops_rails.adoc#railsvalidation[Rails/Validation]
128134
* xref:cops_rails.adoc#railswhereequals[Rails/WhereEquals]
129135
* xref:cops_rails.adoc#railswhereexists[Rails/WhereExists]
136+
* xref:cops_rails.adoc#railswheremissing[Rails/WhereMissing]
130137
* xref:cops_rails.adoc#railswherenot[Rails/WhereNot]
131138

132139
// END_COP_LIST

0 commit comments

Comments
 (0)