Always assumes any capitalized symbol is a class...
Closed this issue · 3 comments
AlexBaranosky commented
For better or for worse we have some vars that are capitalized, and clj-schema assumes they are classes.
guns commented
Hi @AlexBaranosky,
It appears to me that you fixed this issue in:
Since failure-details returns [:import :require-refer]
, for capitalized symbols, the search starts with matching imports then to matching vars, which I think is the correct order of precedence.
Therefore given:
;; foo.clj
(ns foo)
(def Foo nil)
;; bar.clj
(ns bar)
(def bar Foo)
Slamhound correctly regrows bar as:
(ns bar
(:require [foo :refer [Foo]]))
So long as Foo is not the name of a class on the classpath.
Could you please confirm this is fixed, or am I misunderstanding something?
Thanks!