Fork me on GitHub
#clj-kondo
<
2022-12-18
>
skylize01:12:41

How do I completely ignore a whole folder?

borkdude10:12:16

You can do this in two ways: only explicitly lint the folders you want to lint: clj-kondo --lint src/foo src/bar or configure {:output {:exclude-files ["regex"]}}

1
serioga16:12:25

Can we use specific configuration to expression like

#_{:clj-kondo/config {}}

serioga16:12:45

I don't like an idea to completely disable :shadowed-linter for expression but want to configure :exclude instead...

serioga16:12:38

Well, the silly attempt did not work 🙂

(defn declare-type
  #_{:clj-kondo/config {:linters {:shadowed-var {:exclude [type]}}}}
  [type {:keys [as-handler, as-wrapper, type-alias]}]

borkdude16:12:34

Have you tried config-in-call?

serioga16:12:12

I did not. This is in config.edn? Too far from expression itself, can be easily missed in refactoring...

serioga17:12:24

I can create a feature request 😉

👍 1
borkdude19:12:25

@U0HJNJWJH Feel free to create an issue with a good use case of this

1
serioga16:12:45

I don't like an idea to completely disable :shadowed-linter for expression but want to configure :exclude instead...

serioga16:12:38

Well, the silly attempt did not work 🙂

(defn declare-type
  #_{:clj-kondo/config {:linters {:shadowed-var {:exclude [type]}}}}
  [type {:keys [as-handler, as-wrapper, type-alias]}]