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:
|
Style/WordArray:
|
||||||
Enabled: false
|
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.
|
# Cop supports --auto-correct.
|
||||||
Style/ZeroLengthPredicate:
|
Style/ZeroLengthPredicate:
|
||||||
Exclude:
|
Exclude:
|
||||||
|
|||||||
@ -329,11 +329,11 @@ module Redmine
|
|||||||
end
|
end
|
||||||
|
|
||||||
def is_file?
|
def is_file?
|
||||||
'file' == self.kind
|
self.kind == 'file'
|
||||||
end
|
end
|
||||||
|
|
||||||
def is_dir?
|
def is_dir?
|
||||||
'dir' == self.kind
|
self.kind == 'dir'
|
||||||
end
|
end
|
||||||
|
|
||||||
def is_text?
|
def is_text?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user