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

functions in spec/def not referenced? #36

Open
kurt-o-sys opened this Issue Aug 5, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@kurt-o-sys
Copy link

kurt-o-sys commented Aug 5, 2016

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:.

@venantius

This comment has been minimized.

Copy link
Owner

venantius commented Aug 6, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment