cespare / goclj

Clojure parsing in Go
MIT License
37 stars 6 forks source link

Remove-unused-requires doesn't account for auto-resolving namespaced keywords #59

Closed al-yisun closed 5 years ago

al-yisun commented 5 years ago

So if there is only a spec referring to ::x the relevant require will be deleted.

cespare commented 5 years ago

More precisely, remove-unused-requires doesn't know how auto-resolution works and so it doesn't know that the alias y is used here:


(require '[x :as y])
(println ::y/z)