clj-kondo 2025-06-09

I'm running clj-kondo from code and can't seem to figure out how to get it to ignore the .clj_kondo directory anywhere in the path. If I try to escape the period here at the start of the directory name my editor tells me \. is not a valid escape.

(kondo/run! {:lint [file_path]
             :config {:exclude-files ".*\.clj_kondo/.*$"
             :output {:format :edn}}})

✅ 1

Got it, typo plus escaping the backslash:

(kondo/run! {:lint ["/app/project"]
               :config {:exclude-files ".*\\.clj-kondo/.*"
                        :output {:format :edn}}})

👍 1