From d6a8a8179acb1a55b666769c4d5d239b9e8b2652 Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Wed, 13 Jul 2022 12:17:57 +0900 Subject: [PATCH] Enable `ActiveSupportExtensionsEnabled` option by default Follow up https://github.com/rubocop/rubocop/pull/10699. `ActiveSupportExtensionsEnabled` option is supported since RuboCop 1.31.0. Please merge #729 first. --- ...w_enable_global_active_support_extensions_enabled_option.md | 1 + config/default.yml | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 changelog/new_enable_global_active_support_extensions_enabled_option.md diff --git a/changelog/new_enable_global_active_support_extensions_enabled_option.md b/changelog/new_enable_global_active_support_extensions_enabled_option.md new file mode 100644 index 0000000000..4270479094 --- /dev/null +++ b/changelog/new_enable_global_active_support_extensions_enabled_option.md @@ -0,0 +1 @@ +* [#746](https://github.com/rubocop/rubocop-rails/pull/746): Enable `ActiveSupportExtensionsEnabled` option by default. ([@koic][]) diff --git a/config/default.yml b/config/default.yml index 27446c2fed..7c886526eb 100644 --- a/config/default.yml +++ b/config/default.yml @@ -10,6 +10,9 @@ AllCops: # Exclude db/schema.rb and db/[CONFIGURATION_NAMESPACE]_schema.rb by default. # See: https://guides.rubyonrails.org/active_record_multiple_databases.html#setting-up-your-application - db/*schema.rb + # Enable checking Active Support extensions. + # See: https://docs.rubocop.org/rubocop/configuration.html#enable-checking-active-support-extensions + ActiveSupportExtensionsEnabled: true # What version of Rails is the inspected code using? If a value is specified # for TargetRailsVersion then it is used. Acceptable values are specified # as a float (i.e. 5.1); the patch version of Rails should not be included.