Hey all. I think I am missing something obvious about my config here and am hoping for a quick spot check if anyone is available. Why does the following configuration produce a :discouraged-namespace warning when I am trying to ignore it in the example ns?
*http://example.cl*jc
(ns example
(:require [discouraged :as d]))
.clj-kondo/config.edn
{:config-in-ns {example {:ignore [:discouraged-namespace]}}
:linters {:discouraged-namespace {discouraged {:message "discouraged ns"}}}}
unexpected error:
clj-kondo --lint example.cljc
example.cljc:2:14: warning: namespace discouraged is required but never used
example.cljc:2:14: warning: discouraged ns
linting took 10ms, errors: 0, warnings: 2FWIW I just fixed something like this by putting ^:clj-kondo/ignore before the [discouraged :as d]
@mitchell_clojure hmm, could be a bug. can you post an issue, I'll check tomorrow. meanwhile you can use the workaround that @ambrosebs suggested
I'm signing off for the day, but I noticed I am using a noncurrent version of Kondo. Once I am back on tomorrow morning, I will test with the latest version and make an issue if it persists. Thanks!