mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
rubocop: fix offences of the Style/Not cop
This commit is contained in:
parent
33bce12088
commit
823bfb3bcc
3 changed files with 3 additions and 11 deletions
|
@ -305,14 +305,6 @@ Style/MultipleComparison:
|
|||
Exclude:
|
||||
- 'lib/pry/indent.rb'
|
||||
|
||||
# Offense count: 4
|
||||
# Cop supports --auto-correct.
|
||||
Style/Not:
|
||||
Exclude:
|
||||
- 'lib/pry/method/weird_method_locator.rb'
|
||||
- 'lib/pry/pry_class.rb'
|
||||
- 'lib/pry/testable.rb'
|
||||
|
||||
# Offense count: 5
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedOctalStyle.
|
||||
|
|
|
@ -38,7 +38,7 @@ class Pry
|
|||
end
|
||||
|
||||
def weird_method?(method, b)
|
||||
not normal_method?(method, b)
|
||||
!normal_method?(method, b)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -294,8 +294,8 @@ you can add "Pry.config.windows_console_warning = false" to your pryrc.
|
|||
end
|
||||
|
||||
def self.default_editor_for_platform
|
||||
return ENV['VISUAL'] if ENV['VISUAL'] && (not ENV['VISUAL'].empty?)
|
||||
return ENV['EDITOR'] if ENV['EDITOR'] && (not ENV['EDITOR'].empty?)
|
||||
return ENV['VISUAL'] if ENV['VISUAL'] && !ENV['VISUAL'].empty?
|
||||
return ENV['EDITOR'] if ENV['EDITOR'] && !ENV['EDITOR'].empty?
|
||||
return 'notepad' if Helpers::Platform.windows?
|
||||
|
||||
%w(editor nano vi).detect do |editor|
|
||||
|
|
Loading…
Reference in a new issue