Class: Exercism::Analyzers::Jslint
- Defined in:
- lib/exercism-analysis/analyzers/javascript/jslint.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
8 9 10 11 12 13 |
# File 'lib/exercism-analysis/analyzers/javascript/jslint.rb', line 8 def call raw_result = with_tempfile('javascript') {|temp| adapter.execute(runner_path, temp.path) } JSON.parse(raw_result).map do |result| ThirdPartyResult.new(result['reason'], result['line'], result['character']) end end |