lib/pronto/swiftlint/output_parser.rb in pronto-swiftlint-0.1.0 vs lib/pronto/swiftlint/output_parser.rb in pronto-swiftlint-0.1.1

- old
+ new

@@ -6,10 +6,10 @@ def parse(output) begin violations = JSON.parse(output) rescue => e puts "pronto-swiftlint ERROR: failed to parse output. Is formatter set to json? #{e}" - return [] + return {} end result = {} violations.each do |violation| file = violation['file']