lib/swiftformat/plugin.rb in danger-swiftformat-0.3.3 vs lib/swiftformat/plugin.rb in danger-swiftformat-0.3.4

- old
+ new

@@ -44,10 +44,10 @@ # Process the errors message = "### SwiftFormat found issues:\n\n" message << "| File | Rules |\n" message << "| ---- | ----- |\n" results[:errors].each do |error| - message << "| #{error[:file]} | #{error[:rules].join(', ')} |\n" + message << "| #{error[:file].gsub(Dir.pwd + '/', '')} | #{error[:rules].join(', ')} |\n" end markdown message if fail_on_error fail "SwiftFormat found issues"