Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False unused namespace warning #1289

Closed
jngbng opened this issue Jun 1, 2021 · 2 comments
Closed

False unused namespace warning #1289

jngbng opened this issue Jun 1, 2021 · 2 comments

Comments

@jngbng
Copy link

jngbng commented Jun 1, 2021

version

clj-kondo v2021.05.31

macro usage

Maybe have something to do with clojure.spec.alpha/keys macro

platform

native version of clj-kondo

editor

Emacs

problem

Namespace is reported unused when it is only used in spec.alpha/keys's argument.

(ns boxhero.hello
  (:require [cljs.spec.alpha :as s]
            [boxhero.spec :as spec]))

(s/keys :req [::spec/hello])
src/boxhero/hello.clj:3:14: warning: namespace boxhero.spec is required but never used

but it is used in s/keys.

repro

Please refer to problem description.

config

no

expected behavior

no warning is exepcted.

@borkdude
Copy link
Member

borkdude commented Jun 1, 2021

Probably related to #1272

@borkdude
Copy link
Member

borkdude commented Jun 1, 2021

Fixed on master.

@borkdude borkdude closed this as completed Jun 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants