kamadorueda / alejandra

The Uncompromising Nix Code Formatter
https://kamadorueda.github.io/alejandra/
The Unlicense
855 stars 41 forks source link

Prints to stderr by default #419

Closed Andyson007 closed 3 months ago

Andyson007 commented 3 months ago

Observed behavior

Running

alejandra . 1> /dev/null

outputs

Checking style in 14 files using 4 threads.

Congratulations! Your code complies with the Alejandra style.

👏 Special thanks to Daniel Salazar for being a sponsor of Alejandra!

Expected behavior

alejandra . 1> /dev/null

shouldn't output anything, or it should instead only output the actual errors encountered during formatting.

Andyson007 commented 3 months ago

Ok, so looking through the code I found that the --quit flag allows for the behaviour I expected. So i should've used --help