You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can specify additional message (e.g. how to fix format issue) for danger comment using the additional_message parameter:
swiftformat.additional_message="your additional message for contributor"
By default, danger-swiftformat will run on any modified or created file ending in .swift. If you'd like to exclude
certain directories or files such as Pods, you can use the exclude parameter:
If you want the format results shows in the diff instead of a comment, you can use the inline_mode option. Violations that are out of the diff will be shown in danger's fail or warn section:
swiftformat.inline_mode=true
The exclude option takes an array of glob patterns; you can find additional documentation on the patterns
here.
Development
Clone this repo
Run bundle install to setup dependencies.
Run bundle exec rake spec to run the tests.
Use bundle exec guard to automatically have tests run as you make changes.
Make your changes.
Releasing a new version
Use the release.sh script:
./scripts/release.sh
Then bump the gem to the next patch version.
About
A danger plugin to check Swift formatting using SwiftFormat.