Closed Limess closed 1 year ago
Same here, I get a report for unused binding a.
(let [a [1]]
(com.climate.claypoole/pmap 1 #(println %) a)))
https://github.com/devurandom/clj-kondo-configs-issue-2 contains a minimal reproduction of this issue:
❯ clj-kondo --version
clj-kondo v2022.12.10
❯ clj-kondo --lint src/clj_kondo_example.clj
src/clj_kondo_example.clj:2:14: warning: namespace clojure.edn is required but never used
src/clj_kondo_example.clj:5:21: warning: unused binding thread-pool
linting took 23ms, errors: 0, warnings: 2
Fixed with io.github.clj-kondo/config-org.clj-commons-claypoole {:mvn/version "1.0.1"}
When using the Claypoole config from this library, anything within
pool-and-body
is reported as an unused bindinge.g.
reports
queue-url
as unused via theunused-binding
rule.