Add check mode for use by test suites #178

Merged
mightybyte merged 1 commits from check-mode into master 2018-09-11 20:26:50 +02:00
mightybyte commented 2018-09-11 07:34:18 +02:00 (Migrated from github.com)

This pull request adds a mode makes no changes to files, but returns 0 (success) when no changes would be made and 1 (failure) when changes would be made. This mode is useful for enforcing the use of brittany on a project without imposing things on the dev workflow. You can simply run this mode in CI and it will fail if brittany needs to be run.

This pull request adds a mode makes no changes to files, but returns 0 (success) when no changes would be made and 1 (failure) when changes would be made. This mode is useful for enforcing the use of brittany on a project without imposing things on the dev workflow. You can simply run this mode in CI and it will fail if brittany needs to be run.
lspitzner commented 2018-09-11 20:26:45 +02:00 (Migrated from github.com)

Looks good, thanks!

Looks good, thanks!
CMCDragonkai commented 2018-10-27 09:28:47 +02:00 (Migrated from github.com)

Can this be added into the documentation, how to use in the command line? I'd like to integrate this into my Gitlab precommit hooks.

Can this be added into the documentation, how to use in the command line? I'd like to integrate this into my Gitlab precommit hooks.
Sign in to join this conversation.
There is no content yet.