whitesmith / rubycritic

A Ruby code quality reporter
MIT License
3.33k stars 223 forks source link

TreeMaps and Dependency Structure Matrix to inspect code architecture quality #496

Open mottalrd opened 1 month ago

mottalrd commented 1 month ago

Good morning RubyCritic community, I use this tool often and I am very grateful for all your contributions here!

I love the churn/complexity visualisation of RubyCritic and I am wondering if other code visualisations have been considered for implementation. These are some visualisations that I would love to see in RubyCritic: (a) Treemaps (here). CodeCity is another cool variation of this here (b) Dependency Structure Matrix (here)

Has any of these been considered for implementation? If so can anyone point me to the conversation?

Thank you 🙏 have a good day Alfredo

etagwerker commented 1 month ago

@mottalrd Hey Alfredo, thanks for suggesting this idea!

I've thought about a topic that is tangential to what you are talking about: Dependency Freshness.

@mscottford has talked about this in the Software Engineering Radio podcast: https://www.youtube.com/watch?v=_Ob8RanicKE

It's based on this paper: https://ieeexplore.ieee.org/document/7202955

For some of my projects I've been using these tools:

Those two tools give me an idea of "dependency freshness" for a Ruby application.

Did you have an existing Ruby gem in mind when it comes to adding a dependency structure matrix analysis?