(clean-ns-form {:keys [how-to-ns-opts refactor-nrepl-opts filename
original-ns-form namespaces-that-should-never-cleaned]})
(ns-form-of filename)
(used-namespace-names filename namespaces-that-should-never-cleaned)
NOTE: this returns the set of namespace names that are used, not the set of namespaces that are used.
e.g. a namespace which is exclusively used through :refer
has a 'unused namespace name',
but it is not unused (because it is referred).
Use with caution accordingly, and not as a exclusive source of truth.
namespaces-that-should-never-cleaned
refers to the namespaces that are requiring libs - not the required libs themselves.
NOTE: this returns the set of namespace _names_ that are used, not the set of namespaces that are used. e.g. a namespace which is exclusively used through `:refer` has a 'unused namespace name', but it is not unused (because it is referred). Use with caution accordingly, and not as a exclusive source of truth. `namespaces-that-should-never-cleaned` refers to the namespaces that are requiring libs - not the required libs themselves.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close