Class: Exercism::Analyzers::Kibit
- Defined in:
- lib/exercism-analysis/analyzers/clojure/kibit.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 14 |
# File 'lib/exercism-analysis/analyzers/clojure/kibit.rb', line 8 def call raw_result = with_tempfile('clojure') {|temp| adapter.execute(jar_path, 'kibit_runner.core', temp.path) } JSON.parse(raw_result).map do |result| reason = "Expression #{result['expr']} can be simplified to #{result['alt']}" ThirdPartyResult.new(reason, result['line'], result['column']) end end |