Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upHow to `--fix` through stdin without getting errors? #1048
Comments
gerardabello
closed this
Jan 27, 2018
This comment has been minimized.
This comment has been minimized.
|
Editor plugins do this by dealing with errors when try spawn a process to try and perform the fix. |
This comment has been minimized.
This comment has been minimized.
|
@gerardabello The "fixed" code goes to Concrete example: echo 'var x = 4;' | standard --stdin --fix > out.txtNow "out.txt" contains the fixed file. The unfixable errors still get printed to |
lock
bot
locked as resolved and limited conversation to collaborators
May 25, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
gerardabello commentedJan 23, 2018
I want to format a string of code that might contain non-fixable errors. If I want the formatted output through stdin I get both the code and the non-fixable errors, so it is difficult to extract the formatted code from there.
Is there any way to ignore non-fixable errors when using
--fixthrough stdin?Thanks