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: