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 style guide check + preview of differences #664

Closed
troibe opened this issue Oct 31, 2020 · 2 comments
Closed

Add style guide check + preview of differences #664

troibe opened this issue Oct 31, 2020 · 2 comments

Comments

@troibe
Copy link

troibe commented Oct 31, 2020

Is your feature request related to a problem? Please describe.
I would like to use ormolu in a git action to check if the code complies with the style guide.

Describe the solution you'd like
Maybe I didn't find it in the documentation but is there a mode that just checks if the style guide is met and returns the parts of the code where there would be differences?

Describe alternatives you've considered
Of course I can just execute the formatter and then compare unformatted and formatted file but it would be nice to have this functionality build in.

@mrkkrp
Copy link
Member

mrkkrp commented Nov 1, 2020

Indeed, this is something I'd like to have too. The suggested edits should be printed to stderr in check mode, right now we just return non-zero exit code if the inputs are not already formatted.

@mrkkrp
Copy link
Member

mrkkrp commented Nov 1, 2020

Duplicate of #656.

@mrkkrp mrkkrp closed this as completed Nov 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants