diff --git a/changelog/change_rails_eager_evaluation_log_message_default.md b/changelog/change_rails_eager_evaluation_log_message_default.md new file mode 100644 index 0000000000..aa679a19ad --- /dev/null +++ b/changelog/change_rails_eager_evaluation_log_message_default.md @@ -0,0 +1 @@ +* [#1364](https://github.com/rubocop/rubocop-rails/pull/1364): Make `Rails/EagerEvaluationLogMessage` enabled by default. ([@Uaitt][]) diff --git a/config/default.yml b/config/default.yml index b59db897c5..4a604a30d2 100644 --- a/config/default.yml +++ b/config/default.yml @@ -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.' diff --git a/docs/modules/ROOT/pages/cops_rails.adoc b/docs/modules/ROOT/pages/cops_rails.adoc index ad89ca7c52..9d624de27f 100644 --- a/docs/modules/ROOT/pages/cops_rails.adoc +++ b/docs/modules/ROOT/pages/cops_rails.adoc @@ -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 @@ -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