Class: Pronto::ProntoJavaCheckstyleRunner
- Inherits:
-
Runner
- Object
- Runner
- Pronto::ProntoJavaCheckstyleRunner
- Defined in:
- lib/pronto/runner.rb
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/pronto/runner.rb', line 6 def run paths = ENV["PRONTO_JAVA_CHECKSTYLE_RESULT_PATHS"] return [] unless @patches && paths offences = paths.split(",") .map{ |path| JavaCheckstyle::Parsing.new(path).parse } .flatten .compact @patches.select { |p| p.additions > 0 } .map { |p| inspect(p, offences) } .flatten .compact end |