https://kotlinlang.org logo
Title
a

aaverin

07/18/2019, 10:54 AM
I would love to see classes diagram of my project, to analyse architecture and dependencies between packages. Is there any tool I could use? Built-in Idea Ultimate diagram builder doesn’t seem to work with Kotlin
t

Tim Schraepen

07/18/2019, 11:10 AM
You might want to look at https://www.archunit.org/
🤯 1
a

aaverin

07/18/2019, 11:14 AM
Looks very nice, thanks. Still, would be great to have something visual. Probably just an UML?
To be more specific for exact case I have at the moment. I have a big mess in the code and in progress of refactoring it. I would like to see before and after class diagrams to teach my junior developers on how they should not architect a feature in the project
Also, ideally in CI manner, provide a way to somehow see if architecture is good for the feature – maybe by showing before/after diagramms of changed classes in the PR
👍 1
c

Casey Brooks

07/18/2019, 2:26 PM
There has been a lot of interest for me to add this feature to Orchid. Would love to get your thoughts on this thread of how it should look and what data should be included, I plan on starting work on this soon https://github.com/JavaEden/Orchid/issues/275
a

aaverin

07/18/2019, 2:38 PM
It probably would be useful in documentation, but at the moment I see it more like a standalone tool, that would, for example, be able to generate PlantUML for given set of Kotlin files, that I can later render and put to the PR, for example. Or open in the editor and analyse.
Projects are different, we are using Kotlin on both Backend and Android and so far, luckily, there was no need for real generated documentation for us – code is a great documentation by itself, when written in the right way