]> source.dussan.org Git - redmine.git/commitdiff
Disable RuboCop Style/InverseMethods (#36919).
authorGo MAEDA <maeda@farend.jp>
Mon, 16 Oct 2023 14:56:35 +0000 (14:56 +0000)
committerGo MAEDA <maeda@farend.jp>
Mon, 16 Oct 2023 14:56:35 +0000 (14:56 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@22348 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop.yml
.rubocop_todo.yml

index e16f8dbcd552b031557b9afc02d4d336d2323c12..bc24065bea49dd362d0b1276749ed9ef3cdcc80e 100644 (file)
@@ -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
 
index ec34bc33bb27689a4cd1328412879a5f8ff32d18..1c7208e3fb15240e2ac2ece8bdb99d8ec5970a4c 100644 (file)
@@ -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