yagni
yagni copied to clipboard
functions in spec/def not referenced?
Having a function:
(defn- somefunction "cool doc"
[arg]
... do funky stuff ...)
and and a clojure spec:
(spec/def ::speckey (spec/and
#(contains? % :specialkey)
#(somefunction (:specialkey %)))
Yagni gives a WARN: could not find any references to the following:
.
Yeah, support for clojure.spec will require some additional patching. These sort of namespace-localized keywords aren't currently part of Yagni's tracing algorithm.