跟踪 Java 中的可维护性指数 (MI)
我需要一个快速、可靠(开源更好)的 Java 工具来跟踪可维护性指数和类似的代码指标,以向客户展示重构问题的工作进度。
您的申请建议是什么?
I need a good fast, reliable (open source would be a plus) tool for Java for tracking Maintainability index and simliar code metrics to show the customer the progress of working on refactoring issues.
What would be your suggestion to apply?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Sonar 是一个非常出色的工具,用于跟踪多个项目的各种指标并随着时间的推移维护历史记录。
Sonar is a pretty great tool for tracking all sorts of metrics against a number of projects and maintaining a history over time.
一个非常有趣且可用的工具是 Lattix。它检查所有类引用以创建依赖矩阵,这是可维护性的一个很好的指标;如果你的代码库中有很多依赖项,那么一个地方的更改很可能会导致其他类发生一连串的更改。我并不是说这是衡量可维护性的唯一方法,但我认为它可能是最好的方法之一。
很酷的额外功能是重构支持,它允许您计划重构(以减少不需要的依赖项)并为您提供完成它的 TODO 任务列表。而且它在视觉上非常直观,因此您可以一目了然地轻松跟踪项目的“健康状况”。
A very interesting and usable tool for this is Lattix. It checks all class references to create a dependency matrix which is quite a good metric for maintainability; if there are a lot of dependencies in your codebase, then a change in one place will more likely cause a cascade of changes in other classes. I'm not saying it is the only way to measure maintainability, but I think it might be one of the best approaches.
Cool extra feature is refactoring support, which allows you to plan refactoring (to reduce unwanted dependencies) and gives you a list of TODO tasks to complete it. And it is visually quite intuitive, so you can easily track the 'health' of your project at a glance.