There’s also a lein plugin, ns-dep-graph which will generate a graphviz file
for your namespace dependencies. https://github.com/hilverd/lein-ns-dep-graph
Daniel.
On Tuesday, 29 July 2014 at 2:38 am, Andy Fingerhut wrote:
> You can try Eastwood's :unused-namespaces linter for #2. It is disabled by
> default, so you need to give an option on the command line to enable it. If
> you want to try *only* that linter, and none of the other warnings, first
> follow the simple install instructions in the README, then change to the home
> dir of your project and type:
>
> lein eastwood '{:linters [:unused-namespaces]}'
>
> Eastwood will not currently help you with your request #1, but it would not
> be difficult to add such a feature to it, since it determines dependencies
> between namespaces already using tools.namespace. There are other tools that
> can do this for you, e.g. nephila [2] will create a graphics image of your
> project's namespace dependencies, but you must have graphviz installed. I
> don't know of a similar tool that only creates text dependency output.
>
> Andy
>
> [1] https://github.com/jonase/eastwood
>
> [2] https://github.com/timmc/nephila
>
>
> On Mon, Jul 28, 2014 at 4:58 AM, Bertrand Dechoux <[email protected]
> (mailto:[email protected])> 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 [email protected]
> > (mailto:[email protected])
> > Note that posts from new members are moderated - please be patient with
> > your first post.
> > To unsubscribe from this group, send email to
> > [email protected]
> > (mailto:clojure%[email protected])
> > 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 [email protected]
> > (mailto:[email protected]).
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to [email protected]
> (mailto:[email protected])
> Note that posts from new members are moderated - please be patient with your
> first post.
> To unsubscribe from this group, send email to
> [email protected]
> (mailto:[email protected])
> 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 [email protected]
> (mailto:[email protected]).
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.