class Pronto::Swiftlint::Wrapper
Public Instance Methods
lint()
click to toggle source
# File lib/pronto/swiftlint/wrapper.rb, line 7 def lint stdout, stderr, _ = Open3.capture3("#{swiftlint_executable} lint --reporter json") puts "WARN: pronto-swiftlint: #{stderr}" if stderr && stderr.size > 0 return {} if stdout.nil? || stdout == 0 OutputParser.new.parse(stdout) end
Private Instance Methods
swiftlint_executable()
click to toggle source
# File lib/pronto/swiftlint/wrapper.rb, line 16 def swiftlint_executable ENV['PRONTO_SWIFTLINT_PATH'] || 'swiftlint' end