Class: Pronto::Swiftlint::Wrapper
- Inherits:
-
Object
- Object
- Pronto::Swiftlint::Wrapper
- Defined in:
- lib/pronto/swiftlint/wrapper.rb
Instance Method Summary collapse
Instance Method Details
#lint ⇒ Object
7 8 9 10 11 12 |
# File 'lib/pronto/swiftlint/wrapper.rb', line 7 def lint stdout, stderr, _ = Open3.capture3(swiftlint_executable) puts "WARN: pronto-swiftlint: #{stderr}" if stderr && stderr.size > 0 return {} if stdout.nil? || stdout == 0 OutputParser.new.parse(stdout) end |