Class: Exercism::Analyzers::Golint
- Defined in:
- lib/exercism-analysis/analyzers/go/golint.rb
Instance Attribute Summary
Attributes inherited from Analyzer
Instance Method Summary collapse
Methods inherited from Analyzer
#initialize, #lines, #padding, processor, #with_tempfile
Constructor Details
This class inherits a constructor from Exercism::Analyzers::Analyzer
Instance Method Details
#call ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/exercism-analysis/analyzers/go/golint.rb', line 6 def call raw_result = with_tempfile('go') {|temp| adapter.execute('run', runner_path, temp.path) } raw_result.each_line.map do |result| _, line, column, reason = result.split(':') ThirdPartyResult.new(reason.lstrip.chomp, line, column) end end |