lib/swiftformat/plugin.rb in danger-swiftformat-0.1.0 vs lib/swiftformat/plugin.rb in danger-swiftformat-0.2.0
- old
+ new
@@ -15,11 +15,11 @@
attr_accessor :binary_path
# Additional swiftformat command line arguments
#
# @return [String]
- attr_accessor :additional_swiftformat_args
+ attr_accessor :additional_args
# Runs swiftformat
#
# @param [Boolean] fail_on_error
#
@@ -34,10 +34,10 @@
# Stop processing if there are no swift files
return if swift_files.empty?
# Run swiftformat
- results = swiftformat.check_format(swift_files, additional_swiftformat_args)
+ results = swiftformat.check_format(swift_files, additional_args)
# Stop processing if the errors array is empty
return if results[:errors].empty?
# Process the errors