Class: Exercism::Analyzers::Roodi

Inherits:
Analyzer
  • Object
show all
Defined in:
lib/exercism-analysis/analyzers/ruby/roodi.rb

Instance Attribute Summary

Attributes inherited from Analyzer

#adapter, #processor

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

#callObject



8
9
10
11
12
13
14
# File 'lib/exercism-analysis/analyzers/ruby/roodi.rb', line 8

def call
  roodi = ::Roodi::Core::Runner.new
  roodi.check_content(adapter.code)
  roodi.errors.map do |error|
    ThirdPartyResult.new(error.message, error.line_number)
  end
end