Warn on unmatched direct `includes`/`excludes`
Is your feature request related to a problem? Please describe.
When using treefmt in a project for quite a while some configuration can get quite stale.
Unmatched files are already conveniently automatically [WARN]ed on,
but to take proper advantage of this feature, I usually add those specific files to an exclude list
if there is no formatter for this file.
Describe the solution you'd like
I would like a similar warning, if this specifically excluded, or even included file is not in the project anymore.
I don't understand, can you provide some examples?
I think the issue @a-kenji describes is something like this:
- Create a new
hello.foofile. - Notice that treefmt warns that it doesn't know how to format
.foofiles. Addhello.footo treefmt'sexcludes. - Later, remove
hello.foo. treefmt doesn't complain, and we are left with unnecessary cruft in the treefmt config.
(similar story with includes)
Ok, I understand it now.