diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-11-07 12:08:54 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-11-07 12:08:54 +0300 |
commit | dfa6eac07553d5a3f254ee904e4298bd666b410f (patch) | |
tree | a14e04cf628bf1bd28a0c95ed6261461605cfe2e /rubocop | |
parent | 4be549b5ebd354c69fcd2a09e2a2f642490612cf (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'rubocop')
-rw-r--r-- | rubocop/rubocop.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/rubocop/rubocop.rb b/rubocop/rubocop.rb index 42882966b85..708be988f3a 100644 --- a/rubocop/rubocop.rb +++ b/rubocop/rubocop.rb @@ -1,7 +1,11 @@ # rubocop:disable Naming/FileName # frozen_string_literal: true +# Load ActiveSupport to ensure that core extensions like `Enumerable#exclude?` +# are available in cop rules like `Performance/CollectionLiteralInLoop`. +require 'active_support/all' + # Auto-require all cops under `rubocop/cop/**/*.rb` -Dir[File.join(__dir__, 'cop', '**', '*.rb')].sort.each { |file| require file } +Dir[File.join(__dir__, 'cop', '**', '*.rb')].each { |file| require file } # rubocop:enable Naming/FileName |