Skip to content

Commit

Permalink
Cut 2.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Jun 14, 2022
1 parent 3ee6104 commit 0ad4015
Show file tree
Hide file tree
Showing 7 changed files with 344 additions and 134 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.15.0 (2022-06-14)

### New features

* [#325](https://github.com/rubocop/rubocop-rails/pull/325): Add new `Rails/DotSeparatedKeys` cop. ([@fatkodima][])
Expand Down
10 changes: 5 additions & 5 deletions config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -272,13 +272,13 @@ Rails/DeprecatedActiveModelErrorsMethods:
Enabled: pending
Safe: false
VersionAdded: '2.14'
VersionChanged: '<<next>>'
VersionChanged: '2.15'

Rails/DotSeparatedKeys:
Description: 'Enforces the use of dot-separated keys instead of `:scope` options in `I18n` translation methods.'
StyleGuide: 'https://rails.rubystyle.guide/#dot-separated-keys'
Enabled: pending
VersionAdded: '<<next>>'
VersionAdded: '2.15'

Rails/DuplicateAssociation:
Description: "Don't repeat associations in a model."
Expand Down Expand Up @@ -787,7 +787,7 @@ Rails/RootJoinChain:
Rails/RootPublicPath:
Description: "Favor `Rails.public_path` over `Rails.root` with `'public'`."
Enabled: pending
VersionAdded: '<<next>>'
VersionAdded: '2.15'

Rails/SafeNavigation:
Description: "Use Ruby's safe navigation operator (`&.`) instead of `try!`."
Expand Down Expand Up @@ -889,7 +889,7 @@ Rails/StripHeredoc:
Description: 'Enforces the use of squiggly heredoc over `strip_heredoc`.'
StyleGuide: 'https://rails.rubystyle.guide/#prefer-squiggly-heredoc'
Enabled: pending
VersionAdded: '<<next>>'
VersionAdded: '2.15'

Rails/TableNameAssignment:
Description: >-
Expand Down Expand Up @@ -934,7 +934,7 @@ Rails/ToFormattedS:
SupportedStyles:
- to_fs
- to_formatted_s
VersionAdded: '<<next>>'
VersionAdded: '2.15'

Rails/TransactionExitStatement:
Description: 'Avoid the usage of `return`, `break` and `throw` in transaction blocks.'
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.15'
nav:
- modules/ROOT/nav.adoc
4 changes: 4 additions & 0 deletions docs/modules/ROOT/pages/cops.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ based on the https://rails.rubystyle.guide/[Rails Style Guide].
* xref:cops_rails.adoc#railsdelegate[Rails/Delegate]
* xref:cops_rails.adoc#railsdelegateallowblank[Rails/DelegateAllowBlank]
* xref:cops_rails.adoc#railsdeprecatedactivemodelerrorsmethods[Rails/DeprecatedActiveModelErrorsMethods]
* xref:cops_rails.adoc#railsdotseparatedkeys[Rails/DotSeparatedKeys]
* xref:cops_rails.adoc#railsduplicateassociation[Rails/DuplicateAssociation]
* xref:cops_rails.adoc#railsduplicatescope[Rails/DuplicateScope]
* xref:cops_rails.adoc#railsdurationarithmetic[Rails/DurationArithmetic]
Expand Down Expand Up @@ -104,6 +105,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#railsrootpublicpath[Rails/RootPublicPath]
* xref:cops_rails.adoc#railssafenavigation[Rails/SafeNavigation]
* xref:cops_rails.adoc#railssafenavigationwithblank[Rails/SafeNavigationWithBlank]
* xref:cops_rails.adoc#railssavebang[Rails/SaveBang]
Expand All @@ -112,9 +114,11 @@ based on the https://rails.rubystyle.guide/[Rails Style Guide].
* xref:cops_rails.adoc#railsshorti18n[Rails/ShortI18n]
* xref:cops_rails.adoc#railsskipsmodelvalidations[Rails/SkipsModelValidations]
* xref:cops_rails.adoc#railssquishedsqlheredocs[Rails/SquishedSQLHeredocs]
* xref:cops_rails.adoc#railsstripheredoc[Rails/StripHeredoc]
* xref:cops_rails.adoc#railstablenameassignment[Rails/TableNameAssignment]
* 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#railstransactionexitstatement[Rails/TransactionExitStatement]
* xref:cops_rails.adoc#railsuniqbeforepluck[Rails/UniqBeforePluck]
* xref:cops_rails.adoc#railsuniquevalidationwithoutindex[Rails/UniqueValidationWithoutIndex]
Expand Down
Loading

0 comments on commit 0ad4015

Please sign in to comment.