class Pronto::Clippy::Wrapper
Public Instance Methods
lint()
click to toggle source
# File lib/pronto/clippy/wrapper.rb, line 7 def lint _, stderr, = Open3.capture3(*command) Parser.new(stderr).output end
Private Instance Methods
command()
click to toggle source
# File lib/pronto/clippy/wrapper.rb, line 19 def command [executable, 'clippy', '--quiet', '--', '--error-format=json'] end
executable()
click to toggle source
# File lib/pronto/clippy/wrapper.rb, line 15 def executable ENV['CARGO_PRONTO_PATH'] || 'cargo' end