Class: Pronto::GolangTools::Golint
- Defined in:
- lib/pronto/golang/tools/golint.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/golint.rb', line 4 def self.base_command 'golint' end |
Instance Method Details
#parse_line(line) ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/pronto/golang/tools/golint.rb', line 8 def parse_line(line) path, line_number, _, = line.split(':') absolute_path = Pathname.new(path) working_directory = Pathname.new(Dir.pwd) file_path = absolute_path.relative_path_from(working_directory).to_s return file_path, line_number, :warning, .to_s.strip end |