mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
rubocop: fix Style/YodaCondition of lib/redmine/scm/adapters/abstract_adapter.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18351 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
44cbd0eaa9
commit
118fff34aa
@ -1866,13 +1866,6 @@ Style/WhileUntilModifier:
|
||||
Style/WordArray:
|
||||
Enabled: false
|
||||
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: forbid_for_all_comparison_operators, forbid_for_equality_operators_only, require_for_all_comparison_operators, require_for_equality_operators_only
|
||||
Style/YodaCondition:
|
||||
Exclude:
|
||||
- 'lib/redmine/scm/adapters/abstract_adapter.rb'
|
||||
|
||||
# Cop supports --auto-correct.
|
||||
Style/ZeroLengthPredicate:
|
||||
Exclude:
|
||||
|
||||
@ -329,11 +329,11 @@ module Redmine
|
||||
end
|
||||
|
||||
def is_file?
|
||||
'file' == self.kind
|
||||
self.kind == 'file'
|
||||
end
|
||||
|
||||
def is_dir?
|
||||
'dir' == self.kind
|
||||
self.kind == 'dir'
|
||||
end
|
||||
|
||||
def is_text?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user