Skip to content

Commit 0bf5cd4

Browse files
committed
Cut 2.14.0
1 parent 1a6bab6 commit 0bf5cd4

File tree

7 files changed

+499
-62
lines changed

7 files changed

+499
-62
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.14.0 (2022-03-15)
6+
57
### New features
68

79
* [#624](https://github.com/rubocop/rubocop-rails/issues/624): Add new `Rails/I18nLocaleTexts` cop. ([@fatkodima][])

config/default.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Rails/ActionControllerTestCase:
4646
Reference: 'https://api.rubyonrails.org/classes/ActionController/TestCase.html'
4747
Enabled: 'pending'
4848
SafeAutocorrect: false
49-
VersionAdded: '<<next>>'
49+
VersionAdded: '2.14'
5050
Include:
5151
- '**/test/**/*.rb'
5252

@@ -270,17 +270,17 @@ Rails/DeprecatedActiveModelErrorsMethods:
270270
Description: 'Avoid manipulating ActiveModel errors hash directly.'
271271
Enabled: pending
272272
Safe: false
273-
VersionAdded: '<<next>>'
273+
VersionAdded: '2.14'
274274

275275
Rails/DuplicateAssociation:
276276
Description: "Don't repeat associations in a model."
277277
Enabled: pending
278-
VersionAdded: '<<next>>'
278+
VersionAdded: '2.14'
279279

280280
Rails/DuplicateScope:
281281
Description: 'Multiple scopes share this same where clause.'
282282
Enabled: pending
283-
VersionAdded: '<<next>>'
283+
VersionAdded: '2.14'
284284

285285
Rails/DurationArithmetic:
286286
Description: 'Do not use duration as arithmetic operand with `Time.current`.'
@@ -451,7 +451,7 @@ Rails/I18nLazyLookup:
451451
StyleGuide: 'https://rails.rubystyle.guide/#lazy-lookup'
452452
Reference: 'https://guides.rubyonrails.org/i18n.html#lazy-lookup'
453453
Enabled: pending
454-
VersionAdded: '<<next>>'
454+
VersionAdded: '2.14'
455455
Include:
456456
- 'controllers/**/*'
457457

@@ -467,7 +467,7 @@ Rails/I18nLocaleTexts:
467467
Description: 'Enforces use of I18n and locale files instead of locale specific strings.'
468468
StyleGuide: 'https://rails.rubystyle.guide/#locale-texts'
469469
Enabled: pending
470-
VersionAdded: '<<next>>'
470+
VersionAdded: '2.14'
471471

472472
Rails/IgnoredSkipActionFilterOption:
473473
Description: 'Checks that `if` and `only` (or `except`) are not used together as options of `skip_*` action filter.'
@@ -544,7 +544,7 @@ Rails/MatchRoute:
544544
Rails/MigrationClassName:
545545
Description: 'The class name of the migration should match its file name.'
546546
Enabled: pending
547-
VersionAdded: '<<next>>'
547+
VersionAdded: '2.14'
548548
Include:
549549
- db/migrate/*.rb
550550

@@ -875,7 +875,7 @@ Rails/TableNameAssignment:
875875
Do not use `self.table_name =`. Use Inflections or `table_name_prefix` instead.
876876
StyleGuide: 'https://rails.rubystyle.guide/#keep-ar-defaults'
877877
Enabled: false
878-
VersionAdded: '<<next>>'
878+
VersionAdded: '2.14'
879879
Include:
880880
- app/models/**/*.rb
881881

@@ -908,7 +908,7 @@ Rails/TimeZoneAssignment:
908908
Rails/TransactionExitStatement:
909909
Description: 'Avoid the usage of `return`, `break` and `throw` in transaction blocks.'
910910
Enabled: pending
911-
VersionAdded: '<<next>>'
911+
VersionAdded: '2.14'
912912

913913
Rails/UniqBeforePluck:
914914
Description: 'Prefer the use of uniq or distinct before pluck.'

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: 'master'
5+
version: '2.14'
66
nav:
77
- modules/ROOT/nav.adoc

docs/modules/ROOT/pages/cops.adoc

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

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

19+
* xref:cops_rails.adoc#railsactioncontrollertestcase[Rails/ActionControllerTestCase]
1920
* xref:cops_rails.adoc#railsactionfilter[Rails/ActionFilter]
2021
* xref:cops_rails.adoc#railsactiverecordaliases[Rails/ActiveRecordAliases]
2122
* xref:cops_rails.adoc#railsactiverecordcallbacksorder[Rails/ActiveRecordCallbacksOrder]
@@ -40,6 +41,9 @@ based on the https://rails.rubystyle.guide/[Rails Style Guide].
4041
* xref:cops_rails.adoc#railsdefaultscope[Rails/DefaultScope]
4142
* xref:cops_rails.adoc#railsdelegate[Rails/Delegate]
4243
* xref:cops_rails.adoc#railsdelegateallowblank[Rails/DelegateAllowBlank]
44+
* xref:cops_rails.adoc#railsdeprecatedactivemodelerrorsmethods[Rails/DeprecatedActiveModelErrorsMethods]
45+
* xref:cops_rails.adoc#railsduplicateassociation[Rails/DuplicateAssociation]
46+
* xref:cops_rails.adoc#railsduplicatescope[Rails/DuplicateScope]
4347
* xref:cops_rails.adoc#railsdurationarithmetic[Rails/DurationArithmetic]
4448
* xref:cops_rails.adoc#railsdynamicfindby[Rails/DynamicFindBy]
4549
* xref:cops_rails.adoc#railseagerevaluationlogmessage[Rails/EagerEvaluationLogMessage]
@@ -58,7 +62,9 @@ based on the https://rails.rubystyle.guide/[Rails Style Guide].
5862
* xref:cops_rails.adoc#railshelperinstancevariable[Rails/HelperInstanceVariable]
5963
* xref:cops_rails.adoc#railshttppositionalarguments[Rails/HttpPositionalArguments]
6064
* xref:cops_rails.adoc#railshttpstatus[Rails/HttpStatus]
65+
* xref:cops_rails.adoc#railsi18nlazylookup[Rails/I18nLazyLookup]
6166
* xref:cops_rails.adoc#railsi18nlocaleassignment[Rails/I18nLocaleAssignment]
67+
* xref:cops_rails.adoc#railsi18nlocaletexts[Rails/I18nLocaleTexts]
6268
* xref:cops_rails.adoc#railsignoredskipactionfilteroption[Rails/IgnoredSkipActionFilterOption]
6369
* xref:cops_rails.adoc#railsindexby[Rails/IndexBy]
6470
* xref:cops_rails.adoc#railsindexwith[Rails/IndexWith]
@@ -68,6 +74,7 @@ based on the https://rails.rubystyle.guide/[Rails Style Guide].
6874
* xref:cops_rails.adoc#railslinktoblank[Rails/LinkToBlank]
6975
* xref:cops_rails.adoc#railsmailername[Rails/MailerName]
7076
* xref:cops_rails.adoc#railsmatchroute[Rails/MatchRoute]
77+
* xref:cops_rails.adoc#railsmigrationclassname[Rails/MigrationClassName]
7178
* xref:cops_rails.adoc#railsnegateinclude[Rails/NegateInclude]
7279
* xref:cops_rails.adoc#railsnotnullcolumn[Rails/NotNullColumn]
7380
* xref:cops_rails.adoc#railsorderbyid[Rails/OrderById]
@@ -108,6 +115,7 @@ based on the https://rails.rubystyle.guide/[Rails Style Guide].
108115
* xref:cops_rails.adoc#railstablenameassignment[Rails/TableNameAssignment]
109116
* xref:cops_rails.adoc#railstimezone[Rails/TimeZone]
110117
* xref:cops_rails.adoc#railstimezoneassignment[Rails/TimeZoneAssignment]
118+
* xref:cops_rails.adoc#railstransactionexitstatement[Rails/TransactionExitStatement]
111119
* xref:cops_rails.adoc#railsuniqbeforepluck[Rails/UniqBeforePluck]
112120
* xref:cops_rails.adoc#railsuniquevalidationwithoutindex[Rails/UniqueValidationWithoutIndex]
113121
* xref:cops_rails.adoc#railsunknownenv[Rails/UnknownEnv]

0 commit comments

Comments
 (0)