Fork me on GitHub
#clj-kondo
<
2021-01-31
>
borkdude09:01:37

@maxp clj-kondo doesn't know what defalias is, but you can configure it to :lint-as clojure.core/def

maxp09:01:54

ok, thank you.

maxp09:01:32

But as I remember there was no such warnings in honeysql... something was changed in last 2-3 weeks?

borkdude09:01:53

@maxp What changed is that clj-kondo can now detect unresolved vars in other namespaces

borkdude09:01:17

{:linters {:unresolved-var {:level :warning}}} is the default setting

maxp09:01:35

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
borkdude09:01:27

I think the next.jdbc one isn't needed anymore since clj-kondo now has built-in support for it, courtesy of seancorfield

maxp09:01:02

o! really? ... that's good