Here is a list of all the formatters we tested. Feel free to send a PR to add other ones!
- terraform fmt
Make sure to use ormolu 0.1.4.0+ as older versions don't adhere to the spec.
Rufo is an opinionated ruby formatter. By default it exits with status 3 on file change so you have to pass the
cargo fmt is not supported as it doesn't follow the spec. It doesn't allow to pass arbitrary files to be formatter, an ability which
treefmt relies on. Use rustfmt instead (which is what cargo fmt uses under the hood).
Make sure to use terraform 1.3.0 or later versions, as earlier versions format only one file at a time. See the details here.
Note: This example focuses on C/C++ but can be modified to be used with other languages.
An opinionated code formatter that supports many languages.