From fba6d08b68b41c42c6f98f769198302c0016057e Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Mon, 16 Oct 2023 14:56:35 +0000 Subject: [PATCH] Disable RuboCop Style/InverseMethods (#36919). git-svn-id: https://svn.redmine.org/redmine/trunk@22348 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop.yml | 3 +++ .rubocop_todo.yml | 24 ------------------------ 2 files changed, 3 insertions(+), 24 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index e16f8dbcd..bc24065be 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -226,6 +226,9 @@ Style/IdenticalConditionalBranches: - 'config/initializers/10-patches.rb' - 'lib/redmine/wiki_formatting/textile/redcloth3.rb' +Style/InverseMethods: + Enabled: false + Style/NegatedIfElseCondition: Enabled: false diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index ec34bc33b..1c7208e3f 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1159,30 +1159,6 @@ Style/IfWithBooleanLiteralBranches: - 'app/models/query.rb' - 'lib/redmine/field_format.rb' -# This cop supports unsafe autocorrection (--autocorrect-all). -# Configuration parameters: InverseMethods, InverseBlocks. -Style/InverseMethods: - Exclude: - - 'app/helpers/application_helper.rb' - - 'app/helpers/issues_helper.rb' - - 'app/helpers/repositories_helper.rb' - - 'app/models/document.rb' - - 'app/models/issue.rb' - - 'app/models/member.rb' - - 'app/models/message.rb' - - 'app/models/project.rb' - - 'app/models/tracker.rb' - - 'app/models/version.rb' - - 'app/models/wiki_content.rb' - - 'db/migrate/096_add_commit_access_permission.rb' - - 'lib/redmine/default_data/loader.rb' - - 'lib/redmine/helpers/diff.rb' - - 'lib/redmine/scm/adapters/abstract_adapter.rb' - - 'lib/redmine/scm/adapters/git_adapter.rb' - - 'lib/redmine/wiki_formatting/textile/redcloth3.rb' - - 'test/unit/issue_test.rb' - - 'test/unit/query_test.rb' - # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle. # SupportedStyles: line_count_dependent, lambda, literal -- 2.39.5