Browse Source

Disable RuboCop Style/SoleNestedConditional (#36919).


git-svn-id: https://svn.redmine.org/redmine/trunk@21855 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/5.1.0
Go MAEDA 1 year ago
parent
commit
f7e611dfd0
2 changed files with 3 additions and 24 deletions
  1. 3
    0
      .rubocop.yml
  2. 0
    24
      .rubocop_todo.yml

+ 3
- 0
.rubocop.yml View File

@@ -213,6 +213,9 @@ Style/Semicolon:
Style/SlicingWithRange:
Enabled: false

Style/SoleNestedConditional:
Enabled: false

Style/TernaryParentheses:
Enabled: false


+ 0
- 24
.rubocop_todo.yml View File

@@ -1700,30 +1700,6 @@ Style/SelfAssignment:
Style/SingleLineMethods:
Enabled: false

# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowModifier.
Style/SoleNestedConditional:
Exclude:
- 'app/controllers/application_controller.rb'
- 'app/controllers/journals_controller.rb'
- 'app/controllers/wiki_controller.rb'
- 'app/models/board.rb'
- 'app/models/changeset.rb'
- 'app/models/issue.rb'
- 'app/models/issue_import.rb'
- 'app/models/issue_relation.rb'
- 'app/models/mail_handler.rb'
- 'app/models/principal.rb'
- 'app/models/project.rb'
- 'app/models/query.rb'
- 'app/models/time_entry.rb'
- 'app/models/user_import.rb'
- 'app/models/version.rb'
- 'app/models/watcher.rb'
- 'app/models/wiki_annotate.rb'
- 'app/models/wiki_page.rb'
- 'app/validators/date_validator.rb'

# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: RequireEnglish.
# SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names

Loading…
Cancel
Save