-
Notifications
You must be signed in to change notification settings - Fork 15
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
Continuous Integration Support #91
Comments
Yes, that should be easy to set up! Although, smlfmt should already exit with a nonzero return code when it fails. Could you show me the command you tried and what return code you got? |
Oh wait, or maybe you're looking for a mode to check if a file has previously already been formatted by smlfmt? |
|
Hmm sorry, I'm still confused about what you're asking for. It looks like you're trying to reformat Maybe you're trying to do something else? Are you trying to check if
This command has returncode 0 if |
Oh, yes! This is exactly what I wanted, I'm sorry if I was not clear enough. The idea would be to feed |
Ah I see! I don't think it would be too difficult to implement, but realistically I probably won't have time to get to it right away. Any chance you're interested in giving it a shot? I'd be happy to review a PR. Here's some thoughts:
|
Hello,
I would like to run
smlfmt
on CI to check if the files are formatted correctly. I tried to run all the command-line flags and couldn't find one that would return an error code in case of a file not being formatted. Is there some way to setup something like this?Thanks for the awesome tool!
The text was updated successfully, but these errors were encountered: