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

Make check mode output the file paths which are not formatted #656

Closed
ldub opened this issue Sep 24, 2020 · 2 comments · Fixed by #667
Closed

Make check mode output the file paths which are not formatted #656

ldub opened this issue Sep 24, 2020 · 2 comments · Fixed by #667
Assignees

Comments

@ldub
Copy link

ldub commented Sep 24, 2020

Currently when I run ormolu -m 'check' ..., if two files aren't formatted, the tool will output:

Checking 804 files with ormolu...
ExitFailure 100
ExitFailure 100
make: *** [Makefile:194: check-format] Error 102

Here's my make rule, for reference:

check-format:
	IFS=$$'\n' sourceFiles=("$$(find src test -type f -name "*.hs")"); \
	ormolu -m 'check' $${sourceFiles[*]}

It would be useful if the check mode printed the paths of the files which failed to check, and not just ExitFailure 100.

@troibe
Copy link

troibe commented Nov 1, 2020

Oh nice I didn't know that -m 'check' exists. Is there an overview of all modes somewhere in the documentation?

@mrkkrp
Copy link
Member

mrkkrp commented Nov 1, 2020

Try ormolu --help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants