Class: Pronto::SwiftlintRunner
- Inherits:
-
Runner
- Object
- Runner
- Pronto::SwiftlintRunner
- Defined in:
- lib/pronto/swiftlint_runner.rb
Instance Method Summary collapse
Instance Method Details
#run(patches, _) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/pronto/swiftlint_runner.rb', line 6 def run(patches, _) return [] unless patches offences = Swiftlint::Wrapper.new.lint patches.select { |p| p.additions > 0 } .select { |p| swift_file?(p.new_file_full_path) } .map { |p| inspect(p, offences) } .flatten .compact end |