Class: Lintrunner::Runner::Repo
- Defined in:
- lib/lintrunner/runner/repo.rb
Instance Attribute Summary
Attributes inherited from Base
#executor, #git, #match, #path
Instance Method Summary collapse
Methods inherited from Base
Methods included from GitHelpers
#git_changeset, #git_common_ancestor
Constructor Details
This class inherits a constructor from Lintrunner::Runner::Base
Instance Method Details
#run(reporter = nil) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/lintrunner/runner/repo.rb', line 5 def run(reporter = nil) warnings = [] files.each do |filename| # next if patch.delta.binary? full_path = File.join(path, filename) next unless filename =~ match = executor.execute(full_path, filename: filename) warnings.concat output = .collect do || reporter.report() end end warnings end |