lib/swiftformat/plugin.rb in danger-swiftformat-0.0.3 vs lib/swiftformat/plugin.rb in danger-swiftformat-0.1.0

- old
+ new

@@ -12,10 +12,15 @@ # The path to SwiftFormat's executable # # @return [String] attr_accessor :binary_path + # Additional swiftformat command line arguments + # + # @return [String] + attr_accessor :additional_swiftformat_args + # Runs swiftformat # # @param [Boolean] fail_on_error # # @return [void] @@ -29,10 +34,10 @@ # Stop processing if there are no swift files return if swift_files.empty? # Run swiftformat - results = swiftformat.check_format(swift_files) + results = swiftformat.check_format(swift_files, additional_swiftformat_args) # Stop processing if the errors array is empty return if results[:errors].empty? # Process the errors