Fork me on GitHub
#clj-kondo
<
2020-02-14
>
sogaiu01:02:09

that would be nifty!

dominicm07:02:06

I've written something for doing namespace->dependencies, but it is marking some things as completely unused due to them being java

dominicm18:02:41

I'm getting this:

Execution error (ClassCastException) at clj-kondo.impl.core/filter-findings$iter$fn$fn$fn (core.clj:285).
class java.io.File cannot be cast to class java.lang.CharSequence (java.io.File and java.lang.CharSequence are in module java.base of loader 'bootstrap')

Full report at:
/tmp/clojure-15340904493825742425.edn
When running clj-kondo analysis on cljdoc/cljdoc on github.

dominicm18:02:28

@borkdude next release meaning, next one to hit clojars will have this fix in?

borkdude18:02:25

yes, you can use as git dep meanwhile

borkdude18:02:42

or clojars snapshot

dominicm18:02:25

it's np, I found another project to do my demo with.

dominicm18:02:49

https://github.com/SevereOverfl0w/vizns This project uses kondo to find the relationships between your project and it's dependencies.

borkdude18:02:50

so I guess you need the imports for the java false positives?

dominicm19:02:07

Yeah, exactly. It won't cover everything (like implicit loaded logback, but a number of other common java libraries could be handled). I guess I'd also need "implicit imports" - use of java without import.

borkdude19:02:10

there are things in clj-kondo which guess if something is a java class / interop so it won't be reported as a false positive unresolved symbol. I guess that could also go to the used classes

borkdude19:02:46

there's two things: imported classes and actually used classes. both seem useful to include in the analysis data

borkdude19:02:01

clj-kondo already knows about it since it can report unused imports