Skip to content

Commit

Permalink
Cut 2.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Mar 15, 2022
1 parent 1a6bab6 commit 0bf5cd4
Show file tree
Hide file tree
Showing 7 changed files with 499 additions and 62 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.14.0 (2022-03-15)

### New features

* [#624](https://github.com/rubocop/rubocop-rails/issues/624): Add new `Rails/I18nLocaleTexts` cop. ([@fatkodima][])
Expand Down
18 changes: 9 additions & 9 deletions config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Rails/ActionControllerTestCase:
Reference: 'https://api.rubyonrails.org/classes/ActionController/TestCase.html'
Enabled: 'pending'
SafeAutocorrect: false
VersionAdded: '<<next>>'
VersionAdded: '2.14'
Include:
- '**/test/**/*.rb'

Expand Down Expand Up @@ -270,17 +270,17 @@ Rails/DeprecatedActiveModelErrorsMethods:
Description: 'Avoid manipulating ActiveModel errors hash directly.'
Enabled: pending
Safe: false
VersionAdded: '<<next>>'
VersionAdded: '2.14'

Rails/DuplicateAssociation:
Description: "Don't repeat associations in a model."
Enabled: pending
VersionAdded: '<<next>>'
VersionAdded: '2.14'

Rails/DuplicateScope:
Description: 'Multiple scopes share this same where clause.'
Enabled: pending
VersionAdded: '<<next>>'
VersionAdded: '2.14'

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

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

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

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

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

Rails/UniqBeforePluck:
Description: 'Prefer the use of uniq or distinct before pluck.'
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: 'master'
version: '2.14'
nav:
- modules/ROOT/nav.adoc
8 changes: 8 additions & 0 deletions docs/modules/ROOT/pages/cops.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ based on the https://rails.rubystyle.guide/[Rails Style Guide].

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

* 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]
Expand All @@ -40,6 +41,9 @@ based on the https://rails.rubystyle.guide/[Rails Style Guide].
* xref:cops_rails.adoc#railsdefaultscope[Rails/DefaultScope]
* 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#railsduplicateassociation[Rails/DuplicateAssociation]
* xref:cops_rails.adoc#railsduplicatescope[Rails/DuplicateScope]
* xref:cops_rails.adoc#railsdurationarithmetic[Rails/DurationArithmetic]
* xref:cops_rails.adoc#railsdynamicfindby[Rails/DynamicFindBy]
* xref:cops_rails.adoc#railseagerevaluationlogmessage[Rails/EagerEvaluationLogMessage]
Expand All @@ -58,7 +62,9 @@ based on the https://rails.rubystyle.guide/[Rails Style Guide].
* xref:cops_rails.adoc#railshelperinstancevariable[Rails/HelperInstanceVariable]
* xref:cops_rails.adoc#railshttppositionalarguments[Rails/HttpPositionalArguments]
* xref:cops_rails.adoc#railshttpstatus[Rails/HttpStatus]
* xref:cops_rails.adoc#railsi18nlazylookup[Rails/I18nLazyLookup]
* xref:cops_rails.adoc#railsi18nlocaleassignment[Rails/I18nLocaleAssignment]
* xref:cops_rails.adoc#railsi18nlocaletexts[Rails/I18nLocaleTexts]
* xref:cops_rails.adoc#railsignoredskipactionfilteroption[Rails/IgnoredSkipActionFilterOption]
* xref:cops_rails.adoc#railsindexby[Rails/IndexBy]
* xref:cops_rails.adoc#railsindexwith[Rails/IndexWith]
Expand All @@ -68,6 +74,7 @@ based on the https://rails.rubystyle.guide/[Rails Style Guide].
* xref:cops_rails.adoc#railslinktoblank[Rails/LinkToBlank]
* xref:cops_rails.adoc#railsmailername[Rails/MailerName]
* xref:cops_rails.adoc#railsmatchroute[Rails/MatchRoute]
* xref:cops_rails.adoc#railsmigrationclassname[Rails/MigrationClassName]
* xref:cops_rails.adoc#railsnegateinclude[Rails/NegateInclude]
* xref:cops_rails.adoc#railsnotnullcolumn[Rails/NotNullColumn]
* xref:cops_rails.adoc#railsorderbyid[Rails/OrderById]
Expand Down Expand Up @@ -108,6 +115,7 @@ based on the https://rails.rubystyle.guide/[Rails Style Guide].
* 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#railstransactionexitstatement[Rails/TransactionExitStatement]
* xref:cops_rails.adoc#railsuniqbeforepluck[Rails/UniqBeforePluck]
* xref:cops_rails.adoc#railsuniquevalidationwithoutindex[Rails/UniqueValidationWithoutIndex]
* xref:cops_rails.adoc#railsunknownenv[Rails/UnknownEnv]
Expand Down
Loading

0 comments on commit 0bf5cd4

Please sign in to comment.