hi, for your second point clj-refactor.el [1] has a solution called remove unused requires. You can find other other useful cleaning/sorting/reorganising functions there too -- for example 'move one or more forms to an other namespace' can be helpful too for your use case. You can run the above mentioned cleaning functions against your *whole* project with 'run project cleaner functions' [2] -- a detailed explanation of this and intro for the clj-refactor.el can be found here: [3]
the only caveat that these are implemented as an emacs extension. we are currently working on reimplement and extend these as a nREPL middleware so making them editor agnostic. However, if you happen to use emacs you are good to go. benedek [1] https://github.com/clojure-emacs/clj-refactor.el [2] https://github.com/clojure-emacs/clj-refactor.el#project-clean-up [3] http://benedekfazekas.github.io/2014/03/16/clean-clj-project-en-masse/ On Monday, July 28, 2014 12:58:31 PM UTC+1, Bertrand Dechoux wrote: > > Hello, > > I am trying to tidy up a project and I have two actions that could be > somehow be automatized. > > *1) Display the dependencies between the namespace of my project as a > graph (text graph being good enough).* > One would want to break dependencies which do not make sense and sometimes > to create indirection in order to lessen the impact of changes. > > *2) Find out which dependencies are not required.* > Splitting a namespace might be quite easy (the complex part is on the > consumer side) but often I find out that dependencies were not pruned > correctly. > And so there are useless remaining dependencies that were not removed. > > I understand that a 100% bullet proof solution might be really hard to do. > But I was wondering, is there any tools that allows to do these tasks for > common cases? > > Regards > > Bertrand Dechoux > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.