clj-check
clj-check copied to clipboard
[feature] reflections check without dependencies
I would like to run clojure -A:check configured by :main-opts with parameters to check only app code, but without dependencies in deps.edn.
So without
Reflection warning, bidi/bidi.cljc:20:31 - call to static method decode on java.net.URLDecoder can't be resolved (argument types: java.lang.String, unknown).
Rationale:
- it makes mess and always have to read carefully if there are app reflections somewhere between
- CI/CD when want to fail build if there are reflections in app (but not in dependecies)
It is connected with https://github.com/athos/clj-check/issues/3
I second this request. Not very helpful to get a report talking about issues inside code I don't control.
FWIW, this is the same behavior as the lein check command that this library emulates.
This behaviour was equally unhelpful back in the lein check days. But regardless, if this is configurable (as I think OP is proposing) then those who like to spend time fixing others' reflection warnings may continue doing so.