This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
rome format
: exit with error if diff
#3925
elijaholmos
started this conversation in
Suggestions
Replies: 1 comment 1 reply
-
Hey @elijaholmos You can use Thank you for suggesting the exit code improvement. We're aware that the distinction between the two commands isn't entirely clear and that there are use cases that aren't served well at the moment. See #3443 for the ongoing discussion about the different commands. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm playing around with Rome, particularly in a CI context. The
rome ci
command is cool, but I do enjoy having the ability to separately run the linter & formatter. My use case would be to split that up between two separate CI jobs for clarity.What I'm running into is inconsistent output between
rome ci
androme format
. When runningrome ci
on my code, the following output is displayed:However,
rome format
on the exact same file displays a different output:I'm wondering why
ci
exits with an error when a diff is detected, butformat
doesn't. If this is verifiably intentional behavior, I would like to request an flag forrome format
that instructs the command to exit with an error if formatting issues are detected.Beta Was this translation helpful? Give feedback.
All reactions