class Lintrunner::Runner::Base

Attributes

executor[RW]
git[RW]
match[RW]
path[RW]

Public Class Methods

new(path:, match:, executor:) click to toggle source
# File lib/lintrunner/runner/base.rb, line 8
def initialize(path:, match:, executor:)
  self.path = path
  self.executor = executor
  self.match = Regexp.new(Regexp.escape(match))
  self.git = Rugged::Repository.new(path)
end

Public Instance Methods

run(reporter = nil) click to toggle source
# File lib/lintrunner/runner/base.rb, line 15
def run(reporter = nil)
  raise "Runner must implement #run method"
end