Skip to content

Commit

Permalink
Cut 2.16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Sep 9, 2022
1 parent 50792ea commit 10e57c3
Show file tree
Hide file tree
Showing 7 changed files with 335 additions and 10 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## master (unreleased)

## 2.16.0 (2022-09-09)

### New features

* [#714](https://github.com/rubocop/rubocop-rails/pull/714): Add new `Rails/FreezeTime` cop. ([@ydah][])
Expand Down
14 changes: 7 additions & 7 deletions config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Rails/ActionControllerFlashBeforeRender:
Reference: 'https://api.rubyonrails.org/classes/ActionController/FlashBeforeRender.html'
Enabled: 'pending'
SafeAutocorrect: false
VersionAdded: '<<next>>'
VersionAdded: '2.16'

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

Rails/AddColumnIndex:
Description: >-
Expand Down Expand Up @@ -468,7 +468,7 @@ Rails/FreezeTime:
Description: 'Prefer `freeze_time` over `travel_to` with an argument of the current time.'
StyleGuide: 'https://rails.rubystyle.guide/#freeze-time'
Enabled: pending
VersionAdded: '<<next>>'
VersionAdded: '2.16'
SafeAutoCorrect: false

Rails/HasAndBelongsToMany:
Expand Down Expand Up @@ -845,7 +845,7 @@ Rails/RootJoinChain:
Rails/RootPathnameMethods:
Description: 'Use `Rails.root` IO methods instead of passing it to `File`.'
Enabled: pending
VersionAdded: '<<next>>'
VersionAdded: '2.16'

Rails/RootPublicPath:
Description: "Favor `Rails.public_path` over `Rails.root` with `'public'`."
Expand Down Expand Up @@ -1003,13 +1003,13 @@ Rails/ToSWithArgument:
Description: 'Identifies passing any argument to `#to_s`.'
Enabled: pending
Safe: false
VersionAdded: '<<next>>'
VersionAdded: '2.16'

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

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

Rails/WhereNot:
Description: 'Use `where.not(...)` instead of manually constructing negated SQL in `where`.'
Expand Down
2 changes: 1 addition & 1 deletion docs/antora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ name: rubocop-rails
title: RuboCop Rails
# We always provide version without patch here (e.g. 1.1),
# as patch versions should not appear in the docs.
version: ~
version: '2.16'
nav:
- modules/ROOT/nav.adoc
7 changes: 7 additions & 0 deletions docs/modules/ROOT/pages/cops.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ based on the https://rails.rubystyle.guide/[Rails Style Guide].

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

* xref:cops_rails.adoc#railsactioncontrollerflashbeforerender[Rails/ActionControllerFlashBeforeRender]
* xref:cops_rails.adoc#railsactioncontrollertestcase[Rails/ActionControllerTestCase]
* xref:cops_rails.adoc#railsactionfilter[Rails/ActionFilter]
* xref:cops_rails.adoc#railsactiverecordaliases[Rails/ActiveRecordAliases]
* xref:cops_rails.adoc#railsactiverecordcallbacksorder[Rails/ActiveRecordCallbacksOrder]
* xref:cops_rails.adoc#railsactiverecordoverride[Rails/ActiveRecordOverride]
* xref:cops_rails.adoc#railsactivesupportaliases[Rails/ActiveSupportAliases]
* xref:cops_rails.adoc#railsactivesupportonload[Rails/ActiveSupportOnLoad]
* xref:cops_rails.adoc#railsaddcolumnindex[Rails/AddColumnIndex]
* xref:cops_rails.adoc#railsaftercommitoverride[Rails/AfterCommitOverride]
* xref:cops_rails.adoc#railsapplicationcontroller[Rails/ApplicationController]
Expand Down Expand Up @@ -58,6 +60,7 @@ based on the https://rails.rubystyle.guide/[Rails Style Guide].
* xref:cops_rails.adoc#railsfindby[Rails/FindBy]
* xref:cops_rails.adoc#railsfindbyid[Rails/FindById]
* xref:cops_rails.adoc#railsfindeach[Rails/FindEach]
* xref:cops_rails.adoc#railsfreezetime[Rails/FreezeTime]
* xref:cops_rails.adoc#railshasandbelongstomany[Rails/HasAndBelongsToMany]
* xref:cops_rails.adoc#railshasmanyorhasonedependent[Rails/HasManyOrHasOneDependent]
* xref:cops_rails.adoc#railshelperinstancevariable[Rails/HelperInstanceVariable]
Expand Down Expand Up @@ -105,6 +108,7 @@ based on the https://rails.rubystyle.guide/[Rails Style Guide].
* xref:cops_rails.adoc#railsreversiblemigration[Rails/ReversibleMigration]
* xref:cops_rails.adoc#railsreversiblemigrationmethoddefinition[Rails/ReversibleMigrationMethodDefinition]
* xref:cops_rails.adoc#railsrootjoinchain[Rails/RootJoinChain]
* xref:cops_rails.adoc#railsrootpathnamemethods[Rails/RootPathnameMethods]
* xref:cops_rails.adoc#railsrootpublicpath[Rails/RootPublicPath]
* xref:cops_rails.adoc#railssafenavigation[Rails/SafeNavigation]
* xref:cops_rails.adoc#railssafenavigationwithblank[Rails/SafeNavigationWithBlank]
Expand All @@ -119,6 +123,8 @@ based on the https://rails.rubystyle.guide/[Rails Style Guide].
* xref:cops_rails.adoc#railstimezone[Rails/TimeZone]
* xref:cops_rails.adoc#railstimezoneassignment[Rails/TimeZoneAssignment]
* xref:cops_rails.adoc#railstoformatteds[Rails/ToFormattedS]
* xref:cops_rails.adoc#railstoswithargument[Rails/ToSWithArgument]
* xref:cops_rails.adoc#railstoplevelhashwithindifferentaccess[Rails/TopLevelHashWithIndifferentAccess]
* xref:cops_rails.adoc#railstransactionexitstatement[Rails/TransactionExitStatement]
* xref:cops_rails.adoc#railsuniqbeforepluck[Rails/UniqBeforePluck]
* xref:cops_rails.adoc#railsuniquevalidationwithoutindex[Rails/UniqueValidationWithoutIndex]
Expand All @@ -127,6 +133,7 @@ based on the https://rails.rubystyle.guide/[Rails Style Guide].
* xref:cops_rails.adoc#railsvalidation[Rails/Validation]
* xref:cops_rails.adoc#railswhereequals[Rails/WhereEquals]
* xref:cops_rails.adoc#railswhereexists[Rails/WhereExists]
* xref:cops_rails.adoc#railswheremissing[Rails/WhereMissing]
* xref:cops_rails.adoc#railswherenot[Rails/WhereNot]

// END_COP_LIST
Loading

0 comments on commit 10e57c3

Please sign in to comment.