This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-05-07
Channels
- # announcements (32)
- # asami (1)
- # babashka (127)
- # beginners (135)
- # bristol-clojurians (1)
- # calva (21)
- # chlorine-clover (5)
- # cider (2)
- # clara (9)
- # clj-kondo (24)
- # cljsrn (2)
- # clojure (25)
- # clojure-australia (4)
- # clojure-europe (135)
- # clojure-nl (8)
- # clojure-russia (3)
- # clojure-spec (4)
- # clojure-uk (9)
- # clojurescript (55)
- # cursive (6)
- # datomic (62)
- # events (1)
- # fulcro (1)
- # helix (19)
- # jobs (3)
- # jobs-rus (1)
- # kaocha (8)
- # malli (6)
- # meander (3)
- # off-topic (2)
- # pathom (3)
- # podcasts-discuss (1)
- # polylith (3)
- # practicalli (3)
- # re-frame (4)
- # reitit (5)
- # remote-jobs (1)
- # reveal (1)
- # rewrite-clj (9)
- # ring-swagger (1)
- # shadow-cljs (59)
- # xtdb (4)
Question: Shouldn't https://github.com/clj-kondo/clj-kondo/issues/598#issuecomment-551948021 be a default on clj-kondo?
It's not clojure.test but it is one of the "core" libraries, so yes, I think we should have built-in support for it
Is it possible to add a hook to understand https://github.com/marick/Midje/wiki/Tabular-facts custom vars? ๐งต
it seems like an are
macro gone wild (in my opinion the are
macro is already quite wild)
so, I imagine a hook built-in in the lib would be the best, right? (like we did for state-flow)
the "new" midje hahah https://github.com/nubank/state-flow
so, how the hook would mark the ?foo
vars as locals
, is there any hook that makes that as an example?
https://github.com/clj-kondo/clj-kondo/blob/master/src/clj_kondo/impl/analyzer/match.clj
it is different because it calls other clj-kondo internals directly, so it doesn't first macro-expand into something else, but it might give some ideas
the best way to think about hooks is probably: write a macro-expansion that translates your code into built-in clojure forms, but it doesn't actually have to work, as long as the generated code can be linted. And then rewrite the macro-expansion into code that actually moves around/generates nodes instead of s-expressions.