Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a --check flag to fail in CI if files need formatting #31

Closed
elpete opened this issue Aug 19, 2019 · 0 comments
Closed

Add a --check flag to fail in CI if files need formatting #31

elpete opened this issue Aug 19, 2019 · 0 comments

Comments

@elpete
Copy link
Contributor

elpete commented Aug 19, 2019

In a CI environment, we'd like to fail the build if there are any formatting changes CFFormat would make. We do not want to overwrite the formatting in CI because this would likely create git conflicts.

I see the message looking something like the following:

The following files do not match the cfformat rules:

/app/models/Foo.cfc
/app/handlers/Main.cfc

Please format the files using the `—overwrite` flag. 
jcberquist added a commit that referenced this issue Aug 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants