Closed jean-lopes closed 1 year ago
Thanks for the patch, but I'd rather do this via a #re
tag.
Changed the implementation, is this what you had in mind?
Yes, that's what I was thinking of. I need to consider if that's the best solution though, and to add in some configuration tests.
In the meantime, you can of course use .cljfmt.clj
instead.
let me know if you want me to add said tests.
So I've had a think about this, and I think it probably is the best solution, and would maintain compatibility with clojure-lsp. We probably want to add some tests, but I believe the config namespace is lacking tests anyway, so I'll go ahead and add some in so there's something to build off.
When trying to modify the :file-pattern via
.edn
config file we have one of the following scenarios:cljfmt.edn with regex pattern
If we try to load this file, an exception is thrown:
cljfmt.edn with a string
The config is loaded, but when trying to apply the regex it fails because it is a String and not a regex pattern.
I run into this problem on v0.10.5