From c77c1d078b96748956d87176db8ec66d0db70ccb Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Fri, 11 Apr 2025 08:44:08 +0000 Subject: [PATCH] Exclude known RuboCop Lint/UselessConstantScoping offenses to prevent regressions while allowing new checks (#41884). git-svn-id: https://svn.redmine.org/redmine/trunk@23625 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop.yml | 8 ++++++++ .rubocop_todo.yml | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 3a2831c05..40783be33 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -89,6 +89,14 @@ Lint/MissingSuper: Lint/SuppressedException: AllowComments: true +Lint/UselessConstantScoping: + Exclude: + - 'app/controllers/repositories_controller.rb' + - 'app/models/mail_handler.rb' + - 'lib/redmine/acts/mentionable.rb' + - 'lib/redmine/asset_path.rb' + - 'lib/redmine/wiki_formatting/textile/redcloth3.rb' + Layout/LineContinuationLeadingSpace: Enabled: false diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index b27123b26..682017a02 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -254,14 +254,6 @@ Lint/UnusedMethodArgument: Lint/UselessAssignment: Enabled: false -Lint/UselessConstantScoping: - Exclude: - - 'app/controllers/repositories_controller.rb' - - 'app/models/mail_handler.rb' - - 'lib/redmine/acts/mentionable.rb' - - 'lib/redmine/asset_path.rb' - - 'lib/redmine/wiki_formatting/textile/redcloth3.rb' - # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AutoCorrect, CheckForMethodsWithNoSideEffects. Lint/Void: