borkdude / flycheck-clj-kondo

Emacs integration for clj-kondo via flycheck
94 stars 17 forks source link

fix: detect project specific clj-kondo config #11

Closed hugoduncan closed 2 years ago

hugoduncan commented 3 years ago

Set the working directory to the directory of the current buffer. This allows clj-kondo to find any project specific config.

borkdude commented 3 years ago

@hugoduncan Can you explain why this change is needed? I thought default-directory already is the working directory of the buffer, by default?

hugoduncan commented 3 years ago

Um, you seem to be right. Something is causing cli-kondo not to find the project config, and re-evaluating the checker definition seems to fix the problem. I'm stumped at the moment.