Fork me on GitHub
#clj-kondo
<
2021-04-09
>
serioga11:04:48

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

serioga11:04:42

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

tvaughan15:04:13

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

borkdude15:04:58

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

borkdude15:04:23

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

tvaughan15:04:55

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