Class: Lintrunner::Parser::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/lintrunner/parser/base.rb

Direct Known Subclasses

Eslint

Instance Method Summary collapse

Instance Method Details

#parse(output, exit_code, options = {}) ⇒ Array<Lintrunner::Message>

Parse the output of a linter so that lintrunner can understand what the warnings are

Parameters:

  • output (String)

    The output of running the linter command

  • exit_code (Integer)

    The exit code of the linter command

  • options (Hash) (defaults to: {})
  • opts (Hash)

    a customizable set of options

Returns:



13
14
15
# File 'lib/lintrunner/parser/base.rb', line 13

def parse(output, exit_code, options = {})
  raise "Parser must implement #parser method"
end