1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-31 19:47:14 +00:00

Disable RuboCop Style/InverseMethods (#36919).

git-svn-id: https://svn.redmine.org/redmine/trunk@22348 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2023-10-16 14:56:35 +00:00
parent 1dae2cc595
commit fba6d08b68
2 changed files with 3 additions and 24 deletions

View 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

View 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