Liking cljdoc? Tell your friends :D
Clojure only.

refactor-nrepl.ns.clean-ns

Contains functionality for cleaning ns forms.

  • Eliminate :use, or :use-macro clauses.
  • Sort required libraries, imports and vectors of referred symbols.
  • Rewrite to favor prefix form, e.g. [clojure [string test]] instead of two separate libspecs.
  • Raise errors if any inconsistencies are found (e.g. a libspec with more than one alias).
  • Remove any duplication in the :require, :require-macros, :use-macros and :import form.
  • Remove any unused required namespaces or imported classes.
  • Remove any unused referred symbols.
  • Prune, or remove if uneeded, the :rename clause
  • Returns nil when nothing is changed, so the client knows not to do anything.
Contains functionality for cleaning ns forms.

* Eliminate :use, or :use-macro clauses.
* Sort required libraries, imports and vectors of referred symbols.
* Rewrite to favor prefix form, e.g. [clojure [string test]] instead
  of two separate libspecs.
* Raise errors if any inconsistencies are found (e.g. a libspec with more than
  one alias).
* Remove any duplication in the :require, :require-macros, :use-macros
  and :import form.
* Remove any unused required namespaces or imported classes.
* Remove any unused referred symbols.
* Prune, or remove if uneeded, the :rename clause
* Returns nil when nothing is changed, so the client knows not to do anything.
raw docstring

clean-nsclj

(clean-ns {:keys [path relative-path]})
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close