Skip to content

Commit

Permalink
Make Rails/EagerEvaluationLogMessage enabled by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Uaitt committed Sep 13, 2024
1 parent 5dc42d5 commit 69b6a57
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* [#1364](https://github.com/rubocop/rubocop-rails/pull/1364): Make `Rails/EagerEvaluationLogMessage` enabled by default. ([@Uaitt][])
3 changes: 2 additions & 1 deletion config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,9 @@ Rails/DynamicFindBy:
Rails/EagerEvaluationLogMessage:
Description: 'Checks that blocks are used for interpolated strings passed to `Rails.logger.debug`.'
Reference: 'https://guides.rubyonrails.org/debugging_rails_applications.html#impact-of-logs-on-performance'
Enabled: pending
Enabled: true
VersionAdded: '2.11'
VersionChanged: '2.26'

Rails/EnumHash:
Description: 'Prefer hash syntax over array syntax when defining enums.'
Expand Down
6 changes: 4 additions & 2 deletions docs/modules/ROOT/pages/cops_rails.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1841,11 +1841,11 @@ page.find_by_id('a_dom_id').click
|===
| Enabled by default | Safe | Supports autocorrection | Version Added | Version Changed
| Pending
| Enabled
| Yes
| Always
| 2.11
| -
| 2.26
|===
Checks that blocks are used for interpolated strings passed to
Expand Down Expand Up @@ -1925,6 +1925,8 @@ enum status: { active: 0, archived: 1 }
== Rails/EnumSyntax
NOTE: Required Ruby version: 3.0
|===
| Enabled by default | Safe | Supports autocorrection | Version Added | Version Changed
Expand Down

0 comments on commit 69b6a57

Please sign in to comment.