rubocop: use "EnforcedStyle: empty" for Style/EmptyElse

git-svn-id: http://svn.redmine.org/redmine/trunk@19108 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2019-11-20 17:05:35 +00:00
parent 58a2c91218
commit 8db904c401
2 changed files with 3 additions and 3 deletions

View File

@@ -80,6 +80,9 @@ Style/AsciiComments:
# We can not change nor remove it. # We can not change nor remove it.
- 'app/models/repository/git.rb' - 'app/models/repository/git.rb'
Style/EmptyElse:
EnforcedStyle: empty
Style/FormatStringToken: Style/FormatStringToken:
Enabled: false Enabled: false

View File

@@ -1054,10 +1054,7 @@ Style/EmptyCaseCondition:
# SupportedStyles: empty, nil, both # SupportedStyles: empty, nil, both
Style/EmptyElse: Style/EmptyElse:
Exclude: Exclude:
- 'app/helpers/avatars_helper.rb'
- 'app/models/import.rb'
- 'app/models/mail_handler.rb' - 'app/models/mail_handler.rb'
- 'app/models/query.rb'
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle. # Configuration parameters: EnforcedStyle.