Skip to content

Commit

Permalink
[Fix rubocop#365] Mark Rails/SquishedSQLHeredocs unsafe for autocor…
Browse files Browse the repository at this point in the history
…rection

Closes rubocop#365
  • Loading branch information
tejasbubane committed Sep 30, 2020
1 parent 6c9b6e9 commit 1ef5596
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

* [#364](https://github.com/rubocop-hq/rubocop-rails/pull/364): Fix a problem that `Rails/UniqueValidationWithoutIndex` doesn't work in classes defined with compact style. ([@sinsoku][])

### Changes

* [#365](https://github.com/rubocop-hq/rubocop-rails/issues/365): Mark `Rails/SquishedSQLHeredocs` unsafe for autocorrection. ([@tejasbubane][])

## 2.8.1 (2020-09-16)

### Bug fixes
Expand Down
1 change: 1 addition & 0 deletions config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,7 @@ Rails/SquishedSQLHeredocs:
StyleGuide: 'https://rails.rubystyle.guide/#squished-heredocs'
Enabled: 'pending'
VersionAdded: '2.8'
SafeAutoCorrect: false

Rails/TimeZone:
Description: 'Checks the correct usage of time zone aware methods.'
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/cops_rails.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3940,7 +3940,7 @@ user.touch

| Pending
| Yes
| Yes
| Yes (Unsafe)
| 2.8
| -
|===
Expand Down

0 comments on commit 1ef5596

Please sign in to comment.