Skip to content

A lein plugin to tidy/refactor source files in a project via refactor-nrepl middleware

License

Notifications You must be signed in to change notification settings

joelittlejohn/lein-project-clean

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A lein plugin to tidy/refactor source files in a project via refactor-nrepl middleware

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published