class Lintrunner::Parser::Base
Public Instance Methods
parse(output, exit_code, options = {})
click to toggle source
Parse the output of a linter so that lintrunner can understand what the warnings are @param [String] output The output of running the linter command @param [Integer] exit_code The exit code of the linter command @param [Hash] options @option opts [String] :filename Allow the caller to set the filename of the results @return [Array<Lintrunner::Message>] An array of warnings produced by the linter command
# File lib/lintrunner/parser/base.rb, line 13 def parse(output, exit_code, options = {}) raise "Parser must implement #parser method" end