Add check mode for use by test suites #178
No reviewers
Labels
No Label
blocked: dependency
blocked: info-needed
bug
duplicate
enhancement
fixed in HEAD
help wanted
hs:arrows
hs:brackets
hs:classes
hs:comments
hs:do-notation
hs:guards
hs:lists
hs:operators
hs:patterns
hs:records
hs:types
invalid
language extension support
layouting
needs confirmation
priority: high
priority: low
question
revisit before next release
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: hexagoxel/brittany#178
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "check-mode"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
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.
Looks good, thanks!
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.