garriguv / danger-ruby-swiftformat

A danger plugin to check Swift formatting using SwiftFormat.
MIT License
39 stars 15 forks source link

Error: Unknown option '--lint'. Did you mean '--fix'? #43

Closed rogerluan closed 3 years ago

rogerluan commented 3 years ago

First of all, thanks for this awesome plugin! 🎉

I'm facing an issue with running the latest version of SwiftFormat, though:

[!] Invalid `Dangerfile` file: Error running SwiftFormat:
Error: Error: Unknown option '--lint'. Did you mean '--fix'?
Usage: swiftlint lint <options>
  See 'swiftlint lint --help' for more information.
 #  from Dangerfile:7
 #  -------------------------------------------
 #  swiftformat.binary_path = "src/Pods/SwiftLint/swiftlint"
 >  swiftformat.check_format(fail_on_error: true)
 #  -------------------------------------------

I'll investigate this and possibly open a PR to fix this issue.

rogerluan commented 3 years ago

Nevermind, I clearly was using the wrong linter lol (see the path above) Closing 👍