inspector icon indicating copy to clipboard operation
inspector copied to clipboard

Turn Clojure specs into clj-kondo type annotations

Results 5 inspector issues
Sort by recently updated
recently updated
newest added

This tool could inspect vars created in the runtime after loading a set of namespaces. This data could be dumped to a file which clj-kondo will use for a second...

- https://github.com/wilkerlucio/spec-inspec/blob/master/test/com/wsscode/spec_inspec_test.clj#L10

We need to read CLJS specs and write a file. Could we do this via node? Or maybe via a side-effecting macro?

I think I'm going to go with the same test setup as I'm doing for bb, sci and edamame and this will be a .cljc project

Currently we only recognize string and int: https://github.com/clj-kondo/inspector/blob/b6fb64a4b259abfd3e352cf6a2fd2e70a8bac883/src/clj_kondo/inspector/impl.clj#L6 We should map all predicates to clj-kondo's type keywords. See https://github.com/borkdude/clj-kondo/blob/master/src/clj_kondo/impl/types.clj#L20-L103

PR welcome