A lein plugin to tidy/refactor source files in a project via refactor-nrepl middleware. This plugin uses refactor-nrepl's library of refactorings and Yannick Scherer's excellent rewrite-clj.
Put
into the :plugins
vector of your :user
profile.
In a project you want to clean:
$ lein project-clean
- Clean ns declarations in all Clojure files in source-paths and test-paths (sort, standardise and remove redundant 'requires', see refactor-nrepl's clean-ns)
- Allow config options to be supplied, e.g. whether to use the prefix form
- Add a 'dry run' mode that doesn't rewrite files
- Add more clean-up tasks
Copyright © 2016 Joe Littlejohn
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.