This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-03-15
Channels
- # announcements (1)
- # architecture (8)
- # babashka (7)
- # beginners (5)
- # biff (8)
- # calva (24)
- # cider (9)
- # clerk (14)
- # clj-kondo (7)
- # clojars (14)
- # clojure (49)
- # clojure-europe (11)
- # clojure-nl (1)
- # clojure-norway (90)
- # clojure-uk (3)
- # clojurescript (5)
- # core-typed (70)
- # cursive (35)
- # data-science (4)
- # datalevin (6)
- # datomic (2)
- # emacs (3)
- # fulcro (1)
- # holy-lambda (1)
- # hyperfiddle (5)
- # lsp (26)
- # malli (28)
- # off-topic (9)
- # re-frame (21)
- # releases (1)
- # shadow-cljs (7)
- # squint (6)
- # testing (14)
Hey, how hard would it be to get the misplaced-docstring
lint to also detect when the pre/post map is before the string? I found an example in a production codebase today that looked like
(defn foo [args]
{:pre [(some expression)]}
"this is the docstring, it's badly placed lol"
(stuff))
👍 1
Actually it didn't, but I hadn't stopped to think about why.
alright, yeah, I think it should either report a misplaced docstring, or an unused value, can you post an issue?
Yeah, can-do. I'll make sure this is reproducible in a file with fewer errors and that kondo isn't just giving up, and file an issue.
🙏 1