summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2023-10-16 14:56:35 +0000
committerGo MAEDA <maeda@farend.jp>2023-10-16 14:56:35 +0000
commitfba6d08b68b41c42c6f98f769198302c0016057e (patch)
tree2e2ce433ecddb55c7cae3c0045639871b33f86a9
parent1dae2cc595470370ba49183e561066944069bfdc (diff)
downloadredmine-fba6d08b68b41c42c6f98f769198302c0016057e.tar.gz
redmine-fba6d08b68b41c42c6f98f769198302c0016057e.zip
Disable RuboCop Style/InverseMethods (#36919).
git-svn-id: https://svn.redmine.org/redmine/trunk@22348 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--.rubocop.yml3
-rw-r--r--.rubocop_todo.yml24
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