This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-25
Channels
- # announcements (4)
- # babashka (58)
- # beginners (21)
- # calva (42)
- # clj-kondo (15)
- # cljdoc (16)
- # cljs-dev (11)
- # clojure (57)
- # clojure-denmark (1)
- # clojure-europe (24)
- # clojure-france (4)
- # clojure-nl (1)
- # clojure-norway (16)
- # clojure-spec (6)
- # clojure-uk (2)
- # clojurescript (19)
- # clr (4)
- # conjure (1)
- # core-logic (3)
- # cursive (5)
- # data-science (2)
- # datascript (6)
- # datomic (3)
- # emacs (4)
- # events (3)
- # fulcro (17)
- # gratitude (2)
- # hyperfiddle (4)
- # introduce-yourself (3)
- # jobs-discuss (2)
- # lsp (27)
- # malli (22)
- # pathom (73)
- # portal (21)
- # re-frame (5)
- # releases (1)
- # vim (8)
- # xtdb (28)
Introducing clj-kondo-bb: invoke clj-kondo from babashka scripts (or as a babashka one liner)!
✨
https://github.com/clj-kondo/clj-kondo-bb
hey @U04V15CAJ! will this match the release cadence of the main clj-kondo? could we rely on being able to get the newest version for both bb and jvm at the same time? 😅
I've added it to the checklist here: https://raw.githubusercontent.com/clj-kondo/clj-kondo/master/CHANGELOG.md
stupendous, thank you sir
thank you for this @U04V15CAJ! its helped simplify our kondo CI linting set up 🙂
Conundrum: I'm using #malli and I've copied its configs. I'm also using malli's "clj-kondo/emit!" to get updated checks for the function schemas I write. Both of these include :linters {:unresolved-symbol {:exclude [(malli.core/=>)]}}
. I'd like to change this to something better, so I've added :lint-as {malli.core/=> clojure.core/def}
and :config-in-call {malli.core/=> {:linters {:redefined-var {:level :off}}}}
to my base .clj-kondo/config.edn
file. However, the (m/=> my-fn [:=> ...])
call still raises a "redefined var" error. Do the library config files get merged in after the project's base config?
I just had the thought that because it's merely merged, I have to use ^:replace
in my own config under :linters {:unresolved-symbol {}}
. this works but now I lose the library-specific :unresolved-symbol
excludes from other libraries. lol Annoying
Remembering about metadata helped me get it, I think. I've changed the config-in-call
to use
:config-in-call {malli.core/=> {:linters {:redefined-var {:level :off}
:unresolved-symbol {:exclude ^:replace []}}}}
Not ideal, but it works for these limited contextsIf you use mx/defn
you can do {:lint-as {malli.experimental/defn schema.core/defn}}
Yeah, I saw that in the docs. Right now we're sticking with m/=>
cuz it works better for some folks' tooling, but I'm hopeful we can use that soon
Curious to hear more about that, @UEENNMX0T
What more do you want to know?
Not everyone uses clj-kondo, mostly the intellij users, so I try to limit macros to those that act very close to normal function calls