This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-20
Channels
- # aleph (12)
- # announcements (7)
- # aws (6)
- # babashka (36)
- # beginners (161)
- # boot (1)
- # calva (6)
- # cider (21)
- # clj-kondo (13)
- # cljs-dev (28)
- # cljsrn (1)
- # clojars (3)
- # clojure (13)
- # clojure-colombia (1)
- # clojure-europe (10)
- # clojure-spec (12)
- # clojure-uk (47)
- # clojuredesign-podcast (2)
- # clojurescript (67)
- # datascript (8)
- # datomic (21)
- # duct (3)
- # emacs (6)
- # events (1)
- # fulcro (6)
- # graalvm (98)
- # jobs (1)
- # kaocha (18)
- # luminus (1)
- # malli (7)
- # off-topic (56)
- # pathom (5)
- # re-frame (18)
- # reagent (3)
- # reitit (9)
- # remote-jobs (3)
- # rewrite-clj (10)
- # ring (1)
- # shadow-cljs (155)
- # spacemacs (2)
- # sql (5)
- # tools-deps (27)
- # vim (86)
- # xtdb (2)
Has anyone got clj-kondo working with better-cond? It'd be nice to get better support for it's non-standard use of :let [..]
, etc. For now, I'm just using:
{:unresolved-symbol {:exclude [(better-cond.core/cond)]}}
@pithyless I'm not familiar with better-cond. Can you post some examples to give me an idea?
I probably can't do it more justice than this example from the README: https://github.com/Engelberg/better-cond#usage
But for purpose of clj-kondo, I think this is the crux of it:
(b/cond
:let [num 42]
(= num 42) :life)
probably the config you're using is best for now. I don't see enough similarity with other built-in macros
Yeah, I think you would need to be able to traverse and evaluate (psuedocode):
[(:symbol better-cond.core/cond) [:* (:pairs [:keyword :let] [:eval-like clojure.core/let-bindings])]]
Hey! Love clj-kondo. Currently adding it to CI. One question: can the program ignore all warnings and only fail if there are errors?
you can ignore exit codes lower than 3 in CI to fail only in case of error