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
ok, thank you.
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
Great!
{:linters {:unresolved-var {:level :warning}}}
is the default setting
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
<http://clojurewerkz.quartzite.jobs/defjob|clojurewerkz.quartzite.jobs/defjob> clojure.core/defn
next.jdbc/with-transaction clojure.core/with-open}}
probably could help some one else...I think the next.jdbc one isn't needed anymore since clj-kondo now has built-in support for it, courtesy of seancorfield
o! really? ... that's good