Skip to content

Commit 0ad4015

Browse files
committed
Cut 2.15.0
1 parent 3ee6104 commit 0ad4015

File tree

7 files changed

+344
-134
lines changed

7 files changed

+344
-134
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.15.0 (2022-06-14)
6+
57
### New features
68

79
* [#325](https://github.com/rubocop/rubocop-rails/pull/325): Add new `Rails/DotSeparatedKeys` cop. ([@fatkodima][])

config/default.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -272,13 +272,13 @@ Rails/DeprecatedActiveModelErrorsMethods:
272272
Enabled: pending
273273
Safe: false
274274
VersionAdded: '2.14'
275-
VersionChanged: '<<next>>'
275+
VersionChanged: '2.15'
276276

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

283283
Rails/DuplicateAssociation:
284284
Description: "Don't repeat associations in a model."
@@ -787,7 +787,7 @@ Rails/RootJoinChain:
787787
Rails/RootPublicPath:
788788
Description: "Favor `Rails.public_path` over `Rails.root` with `'public'`."
789789
Enabled: pending
790-
VersionAdded: '<<next>>'
790+
VersionAdded: '2.15'
791791

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

894894
Rails/TableNameAssignment:
895895
Description: >-
@@ -934,7 +934,7 @@ Rails/ToFormattedS:
934934
SupportedStyles:
935935
- to_fs
936936
- to_formatted_s
937-
VersionAdded: '<<next>>'
937+
VersionAdded: '2.15'
938938

939939
Rails/TransactionExitStatement:
940940
Description: 'Avoid the usage of `return`, `break` and `throw` in transaction blocks.'

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.15'
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
@@ -42,6 +42,7 @@ based on the https://rails.rubystyle.guide/[Rails Style Guide].
4242
* xref:cops_rails.adoc#railsdelegate[Rails/Delegate]
4343
* xref:cops_rails.adoc#railsdelegateallowblank[Rails/DelegateAllowBlank]
4444
* xref:cops_rails.adoc#railsdeprecatedactivemodelerrorsmethods[Rails/DeprecatedActiveModelErrorsMethods]
45+
* xref:cops_rails.adoc#railsdotseparatedkeys[Rails/DotSeparatedKeys]
4546
* xref:cops_rails.adoc#railsduplicateassociation[Rails/DuplicateAssociation]
4647
* xref:cops_rails.adoc#railsduplicatescope[Rails/DuplicateScope]
4748
* xref:cops_rails.adoc#railsdurationarithmetic[Rails/DurationArithmetic]
@@ -104,6 +105,7 @@ based on the https://rails.rubystyle.guide/[Rails Style Guide].
104105
* xref:cops_rails.adoc#railsreversiblemigration[Rails/ReversibleMigration]
105106
* xref:cops_rails.adoc#railsreversiblemigrationmethoddefinition[Rails/ReversibleMigrationMethodDefinition]
106107
* xref:cops_rails.adoc#railsrootjoinchain[Rails/RootJoinChain]
108+
* xref:cops_rails.adoc#railsrootpublicpath[Rails/RootPublicPath]
107109
* xref:cops_rails.adoc#railssafenavigation[Rails/SafeNavigation]
108110
* xref:cops_rails.adoc#railssafenavigationwithblank[Rails/SafeNavigationWithBlank]
109111
* xref:cops_rails.adoc#railssavebang[Rails/SaveBang]
@@ -112,9 +114,11 @@ based on the https://rails.rubystyle.guide/[Rails Style Guide].
112114
* xref:cops_rails.adoc#railsshorti18n[Rails/ShortI18n]
113115
* xref:cops_rails.adoc#railsskipsmodelvalidations[Rails/SkipsModelValidations]
114116
* xref:cops_rails.adoc#railssquishedsqlheredocs[Rails/SquishedSQLHeredocs]
117+
* xref:cops_rails.adoc#railsstripheredoc[Rails/StripHeredoc]
115118
* xref:cops_rails.adoc#railstablenameassignment[Rails/TableNameAssignment]
116119
* xref:cops_rails.adoc#railstimezone[Rails/TimeZone]
117120
* xref:cops_rails.adoc#railstimezoneassignment[Rails/TimeZoneAssignment]
121+
* xref:cops_rails.adoc#railstoformatteds[Rails/ToFormattedS]
118122
* xref:cops_rails.adoc#railstransactionexitstatement[Rails/TransactionExitStatement]
119123
* xref:cops_rails.adoc#railsuniqbeforepluck[Rails/UniqBeforePluck]
120124
* xref:cops_rails.adoc#railsuniquevalidationwithoutindex[Rails/UniqueValidationWithoutIndex]

0 commit comments

Comments
 (0)