Fork me on GitHub
#clj-kondo
<
2020-04-23
>
martinklepsch17:04:12

Is there a way to prevent certain warnings from being reported e.g. don’t report unused-namespace in general or similar?

martinklepsch17:04:47

I assume that would be possible with :linters? 😄

borkdude17:04:02

@martinklepsch {:linters {:unused-namespace {:level :off}}}

borkdude17:04:45

@martinklepsch But for that specific linter: if you do not use an alias for your namespace, e.g. (require '[foo.specs]), then the namespace won't be reported

borkdude17:04:11

it's also possible to disable that linter in one namespace only using metadata

martinklepsch18:04:51

Nah, we need to disable it everywhere for now 😛

didibus23:04:35

@borkdude Is clj-kondo able to do any kind of local analysis? Like given a form, can it identify the local bindings?