Class: Pronto::GolangTools::Govet
- Inherits:
-
Base
- Object
- Base
- Pronto::GolangTools::Govet
show all
- Defined in:
- lib/pronto/golang/tools/govet.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
#base_command, #command, #enabled?, #initialize, #installed?, #parameters
Class Method Details
.base_command ⇒ Object
4
5
6
|
# File 'lib/pronto/golang/tools/govet.rb', line 4
def self.base_command
'go vet'
end
|
Instance Method Details
#available? ⇒ Boolean
8
9
10
|
# File 'lib/pronto/golang/tools/govet.rb', line 8
def available?
enabled?
end
|
#parse_line(line) ⇒ Object
12
13
14
15
16
17
18
19
20
21
22
|
# File 'lib/pronto/golang/tools/govet.rb', line 12
def parse_line(line)
elements = line.split(':')
file_path = elements[0]
line_number = elements[1]
message = elements[-1]
return file_path, line_number, :warning, message.to_s.strip
end
|