Class: Pronto::GolangTools::Staticcheck

Inherits:
Base
  • Object
show all
Defined in:
lib/pronto/golang/tools/staticcheck.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#available?, #base_command, #command, #enabled?, #initialize, #installed?, #parameters

Constructor Details

This class inherits a constructor from Pronto::GolangTools::Base

Class Method Details

.base_commandObject



4
5
6
# File 'lib/pronto/golang/tools/staticcheck.rb', line 4

def self.base_command
  'staticcheck'
end

Instance Method Details

#parse_line(line) ⇒ Object



8
9
10
11
12
# File 'lib/pronto/golang/tools/staticcheck.rb', line 8

def parse_line(line)
  file_path, line_number, _, message = line.split(':')

  return file_path, line_number, :warning, message.to_s.strip
end