Liking cljdoc? Tell your friends :D

lein-project-clean

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.

Usage

Put

into the :plugins vector of your :user profile.

In a project you want to clean:

$ lein project-clean

Project clean-up tasks that this plugin runs

  • 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)

Todo

  • 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

License

Copyright © 2016 Joe Littlejohn

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

Can you improve this documentation?Edit on GitHub

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

× close