Skip to content

Commit fa6662f

Browse files
committed
Cut 2.18.0
1 parent 1a791ec commit fa6662f

File tree

7 files changed

+174
-54
lines changed

7 files changed

+174
-54
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
## master (unreleased)
1111

12+
## 2.18.0 (2023-02-25)
13+
1214
### New features
1315

1416
* [#863](https://github.com/rubocop/rubocop-rails/pull/863): Add `Rails/ResponseParsedBody` cop. ([@r7kamura][])

config/default.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ Rails/ActiveRecordOverride:
120120
Enabled: true
121121
Severity: warning
122122
VersionAdded: '0.67'
123-
VersionChanged: '<<next>>'
123+
VersionChanged: '2.18'
124124
Include:
125125
- app/models/**/*.rb
126126

@@ -324,7 +324,7 @@ Rails/DeprecatedActiveModelErrorsMethods:
324324
Severity: warning
325325
Safe: false
326326
VersionAdded: '2.14'
327-
VersionChanged: '<<next>>'
327+
VersionChanged: '2.18'
328328

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

342342
Rails/DuplicateScope:
343343
Description: 'Multiple scopes share this same where clause.'
344344
Enabled: pending
345345
Severity: warning
346346
VersionAdded: '2.14'
347-
VersionChanged: '<<next>>'
347+
VersionChanged: '2.18'
348348

349349
Rails/DurationArithmetic:
350350
Description: 'Do not use duration as arithmetic operand with `Time.current`.'
@@ -689,7 +689,7 @@ Rails/Pluck:
689689
Enabled: 'pending'
690690
Safe: false
691691
VersionAdded: '2.7'
692-
VersionChanged: '<<next>>'
692+
VersionChanged: '2.18'
693693

694694
Rails/PluckId:
695695
Description: 'Use `ids` instead of `pluck(:id)` or `pluck(primary_key)`.'
@@ -845,7 +845,7 @@ Rails/ResponseParsedBody:
845845
Description: Prefer `response.parsed_body` to `JSON.parse(response.body)`.
846846
Enabled: pending
847847
SafeAutoCorrect: false
848-
VersionAdded: "<<next>>"
848+
VersionAdded: '2.18'
849849
Include:
850850
- spec/controllers/**/*.rb
851851
- spec/requests/**/*.rb
@@ -1045,7 +1045,7 @@ Rails/TopLevelHashWithIndifferentAccess:
10451045
Enabled: pending
10461046
Severity: warning
10471047
VersionAdded: '2.16'
1048-
VersionChanged: '<<next>>'
1048+
VersionChanged: '2.18'
10491049

10501050
Rails/TransactionExitStatement:
10511051
Description: 'Avoid the usage of `return`, `break` and `throw` in transaction blocks.'
@@ -1077,7 +1077,7 @@ Rails/UnknownEnv:
10771077
Enabled: true
10781078
Severity: warning
10791079
VersionAdded: '0.51'
1080-
VersionChanged: '<<next>>'
1080+
VersionChanged: '2.18'
10811081
Environments:
10821082
- development
10831083
- test
@@ -1134,7 +1134,7 @@ Rails/WhereNotWithMultipleConditions:
11341134
Enabled: 'pending'
11351135
Severity: warning
11361136
VersionAdded: '2.17'
1137-
VersionChanged: '<<next>>'
1137+
VersionChanged: '2.18'
11381138

11391139
# Accept `redirect_to(...) and return` and similar cases.
11401140
Style/AndOr:

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.18'
66
nav:
77
- modules/ROOT/nav.adoc

docs/modules/ROOT/pages/cops.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ based on the https://rails.rubystyle.guide/[Rails Style Guide].
107107
* xref:cops_rails.adoc#railsrenderplaintext[Rails/RenderPlainText]
108108
* xref:cops_rails.adoc#railsrequestreferer[Rails/RequestReferer]
109109
* xref:cops_rails.adoc#railsrequiredependency[Rails/RequireDependency]
110+
* xref:cops_rails.adoc#railsresponseparsedbody[Rails/ResponseParsedBody]
110111
* xref:cops_rails.adoc#railsreversiblemigration[Rails/ReversibleMigration]
111112
* xref:cops_rails.adoc#railsreversiblemigrationmethoddefinition[Rails/ReversibleMigrationMethodDefinition]
112113
* xref:cops_rails.adoc#railsrootjoinchain[Rails/RootJoinChain]

0 commit comments

Comments
 (0)