Skip to content

Commit

Permalink
Cut 2.18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Feb 25, 2023
1 parent 1a791ec commit fa6662f
Show file tree
Hide file tree
Showing 7 changed files with 174 additions and 54 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

## master (unreleased)

## 2.18.0 (2023-02-25)

### New features

* [#863](https://github.com/rubocop/rubocop-rails/pull/863): Add `Rails/ResponseParsedBody` cop. ([@r7kamura][])
Expand Down
18 changes: 9 additions & 9 deletions config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Rails/ActiveRecordOverride:
Enabled: true
Severity: warning
VersionAdded: '0.67'
VersionChanged: '<<next>>'
VersionChanged: '2.18'
Include:
- app/models/**/*.rb

Expand Down Expand Up @@ -324,7 +324,7 @@ Rails/DeprecatedActiveModelErrorsMethods:
Severity: warning
Safe: false
VersionAdded: '2.14'
VersionChanged: '<<next>>'
VersionChanged: '2.18'

Rails/DotSeparatedKeys:
Description: 'Enforces the use of dot-separated keys instead of `:scope` options in `I18n` translation methods.'
Expand All @@ -337,14 +337,14 @@ Rails/DuplicateAssociation:
Enabled: pending
Severity: warning
VersionAdded: '2.14'
VersionChanged: '<<next>>'
VersionChanged: '2.18'

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

Rails/DurationArithmetic:
Description: 'Do not use duration as arithmetic operand with `Time.current`.'
Expand Down Expand Up @@ -689,7 +689,7 @@ Rails/Pluck:
Enabled: 'pending'
Safe: false
VersionAdded: '2.7'
VersionChanged: '<<next>>'
VersionChanged: '2.18'

Rails/PluckId:
Description: 'Use `ids` instead of `pluck(:id)` or `pluck(primary_key)`.'
Expand Down Expand Up @@ -845,7 +845,7 @@ Rails/ResponseParsedBody:
Description: Prefer `response.parsed_body` to `JSON.parse(response.body)`.
Enabled: pending
SafeAutoCorrect: false
VersionAdded: "<<next>>"
VersionAdded: '2.18'
Include:
- spec/controllers/**/*.rb
- spec/requests/**/*.rb
Expand Down Expand Up @@ -1045,7 +1045,7 @@ Rails/TopLevelHashWithIndifferentAccess:
Enabled: pending
Severity: warning
VersionAdded: '2.16'
VersionChanged: '<<next>>'
VersionChanged: '2.18'

Rails/TransactionExitStatement:
Description: 'Avoid the usage of `return`, `break` and `throw` in transaction blocks.'
Expand Down Expand Up @@ -1077,7 +1077,7 @@ Rails/UnknownEnv:
Enabled: true
Severity: warning
VersionAdded: '0.51'
VersionChanged: '<<next>>'
VersionChanged: '2.18'
Environments:
- development
- test
Expand Down Expand Up @@ -1134,7 +1134,7 @@ Rails/WhereNotWithMultipleConditions:
Enabled: 'pending'
Severity: warning
VersionAdded: '2.17'
VersionChanged: '<<next>>'
VersionChanged: '2.18'

# Accept `redirect_to(...) and return` and similar cases.
Style/AndOr:
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.18'
nav:
- modules/ROOT/nav.adoc
1 change: 1 addition & 0 deletions docs/modules/ROOT/pages/cops.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ based on the https://rails.rubystyle.guide/[Rails Style Guide].
* xref:cops_rails.adoc#railsrenderplaintext[Rails/RenderPlainText]
* xref:cops_rails.adoc#railsrequestreferer[Rails/RequestReferer]
* xref:cops_rails.adoc#railsrequiredependency[Rails/RequireDependency]
* xref:cops_rails.adoc#railsresponseparsedbody[Rails/ResponseParsedBody]
* xref:cops_rails.adoc#railsreversiblemigration[Rails/ReversibleMigration]
* xref:cops_rails.adoc#railsreversiblemigrationmethoddefinition[Rails/ReversibleMigrationMethodDefinition]
* xref:cops_rails.adoc#railsrootjoinchain[Rails/RootJoinChain]
Expand Down
Loading

0 comments on commit fa6662f

Please sign in to comment.