garriguv / danger-ruby-swiftformat

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

Run on all .swift files, not just added/modified #42

Open sundeepgupta opened 3 years ago

sundeepgupta commented 3 years ago

Hi there, Is there a way to achieve this?

sundeepgupta commented 3 years ago

Similar to the SwiftLint plugin's swiftlint.lint_all_files = true

tsheaff commented 3 years ago

This seems critical, this is what we want to do on all of our PRs. Please add support for this.

The bash command would be swiftformat . for us

garriguv commented 1 year ago

Doing a bit of spring cleaning on this repo.

This isn't something I had originally planned for this tool since it increases the running time of swiftformat, which can get quite large on big projects.

Happy to merge a PR that would add this option.