Class: Pronto::GolangTools::Staticcheck
- Defined in:
- lib/pronto/golang/tools/staticcheck.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
#available?, #base_command, #blacklisted_files_regexp, #command, #directory, #enabled?, #execution_mode, #initialize, #installed?, #parameters
Constructor Details
This class inherits a constructor from Pronto::GolangTools::Base
Class Method Details
.base_command ⇒ Object
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, _, = line.split(':') return file_path, line_number, :warning, .to_s.strip end |