This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-01-31
Channels
- # babashka (23)
- # beginners (65)
- # calva (126)
- # cider (23)
- # clj-kondo (10)
- # clojure (41)
- # clojure-europe (5)
- # clojure-nl (2)
- # clojure-uk (6)
- # clojurescript (78)
- # contributions-welcome (1)
- # datomic (9)
- # events (1)
- # graalvm (2)
- # meander (10)
- # off-topic (81)
- # pathom (5)
- # shadow-cljs (3)
- # spacemacs (6)
- # vim (3)
- # xtdb (4)
Should clj-kondo handle such things correctly? https://github.com/seancorfield/honeysql/blob/2793619e50cb651545637072b10d765856f2b784/src/honeysql/core.cljc#L13
@maxp clj-kondo doesn't know what defalias
is, but you can configure it to :lint-as
clojure.core/def
But as I remember there was no such warnings in honeysql... something was changed in last 2-3 weeks?
@maxp What changed is that clj-kondo can now detect unresolved vars in other namespaces
my default config now -
{
:linters
{
:unused-referred-var
{:exclude
{taoensso.timbre [debug info warn]}}
:unused-namespace
{:exclude [taoensso.timbre]}}
:lint-as
{
mount.core/defstate clojure.core/def
garden.def/defstyles clojure.core/def
honeysql.util/defalias clojure.core/def
clojure.core/defn
next.jdbc/with-transaction clojure.core/with-open}}
probably could help some one else...👍 3