clj-check icon indicating copy to clipboard operation
clj-check copied to clipboard

[feature] reflections check without dependencies

Open kwladyka opened this issue 5 years ago • 3 comments

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:

  1. it makes mess and always have to read carefully if there are app reflections somewhere between
  2. 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

kwladyka avatar Jul 02 '20 21:07 kwladyka

I second this request. Not very helpful to get a report talking about issues inside code I don't control.

NoahTheDuke avatar Mar 25 '21 15:03 NoahTheDuke

FWIW, this is the same behavior as the lein check command that this library emulates.

dpassen avatar Apr 05 '21 02:04 dpassen

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.

pmonks avatar Oct 12 '21 02:10 pmonks