From ef16f8097c8ed69a98e674e45de342d4780ee348 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 9 Jul 2026 08:22:21 +0100 Subject: [PATCH] Disable incorrect Style/ArrayIntersect rubocop suggestion --- .rubocop.yml | 4 ---- app/models/oauth2_application.rb | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 3d9c9a528..77f50acde 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -72,10 +72,6 @@ Rails/SkipsModelValidations: - 'db/migrate/*.rb' - 'lib/tasks/expire_md5_passwords.rake' -Style/ArrayIntersect: - Exclude: - - 'app/models/oauth2_application.rb' - Style/CollectionQuerying: Exclude: - 'Dangerfile' diff --git a/app/models/oauth2_application.rb b/app/models/oauth2_application.rb index 365d8f6df..80ba74415 100644 --- a/app/models/oauth2_application.rb +++ b/app/models/oauth2_application.rb @@ -41,6 +41,6 @@ class Oauth2Application < Doorkeeper::Application def allowed_scopes return if owner.administrator? - errors.add(:scopes) if scopes.any? { |scope| Oauth::PRIVILEGED_SCOPES.include?(scope) } + errors.add(:scopes) if scopes.any? { |scope| Oauth::PRIVILEGED_SCOPES.include?(scope) } # rubocop:disable Style/ArrayIntersect end end -- 2.47.3