Handling Unmatched Files
By default, treefmt lists all files that aren't matched by any formatter:
This helps you decide whether to add formatters for specific files or ignore them entirely.
Customizing Notifications
Reducing Log Verbosity
If you find the unmatched file warnings too noisy, you can lower the logging level in your config:
treefmt.toml
:
To later find out what files are unmatched, you can override this setting via the command line:
Enforcing Strict Matching
Another stricter policy approach is to fail the run if any unmatched files are found.
This can be paired with an excludes
list to ignore specific files:
treefmt.toml
: