scaldy

Generates a UML-ish class diagram (in Graphviz dot format) from Scala sources.

The idea is to help auto-document a class model. At the moment Scaldy generates boxes for classes and traits, and shows inheritance and composition relationships with arrows. Some details:

There are sample model - diagram pairs below src/test/sample.

For example, if you are in sbt and run

> run C:\dev\scaldy\src\test\sample\posts

it will parse the .scala files in that path and generate a scaldy.dot file, then you can run

C:\dev\scaldy>dot -Tsvg scaldy.dot -o ./src/test/sample/posts/diagram.svg

to generate

this diagram.

The result is a bit disconnected because there are no @BeanProperty annotations in this model. This is roughly the same class structure where some defs have been replaced by @BeanProperty var. This sample is under /sample/beanposts/ and generates

this diagram.

Note: using .png for the embedded images instead of .svg because of this issue