clj-kondo

https://github.com/clj-kondo/clj-kondo
serioga 2021-04-09T11:07:48.236900Z

(defn f
  {:doc "Docstring"}
  [])
Missing docstring Bug?

serioga 2021-04-09T11:09:42.237Z

(meta #'f)
=>
{:arglists ([]),
 :doc "Docstring",
 :name f, ...]}

tvaughan 2021-04-09T15:28:13.243300Z

I'm using flycheck-clj-kondo to run clj-kondo http://v2021.03.in in emacs. Strangely, it seems as though when clj-kondo is run in emacs clj-kondo doesn't read its config.edn and produces numerous warnings. When I run clj-kondo on the command-line (using the same command-line options used by emacs, I think) no warnings are reported, and reports the same warnings seen in emacs when config.edn is deleted. I'm pretty sure my setup is pretty vanilla, but can anyone think of something I may have set incorrectly or forgot to set that could be the cause of this? Thanks

borkdude 2021-04-09T15:34:58.243700Z

@tvaughan Are you using a recent version of flycheck-clj-kondo?

borkdude 2021-04-09T15:35:23.244100Z

And do you have some kind of repro? I'm using emacs + flycheck as well

tvaughan 2021-04-09T15:39:55.246900Z

I'm using straight.el (and a native compilation build of emacs 28 on macos) which, if I understand how straight.el works correctly, should mean I'm running the latest version currently committed to github. I'll setup a reproduction