Paul Krill
Editor at Large

Plug-in defends against complex Java code

news
Oct 5, 20071 min

An Eclipse plug-in to help “defend” Java developers against overly complex and untested code has been implemented as a prototype by the founder of Agitar Software.

Given the unusual acronym, “crap4j,” for Change Risk Analyzer and Predictor for Java, the plug-in and metric are “highly experimental in nature,” at this point, said Alberto Savoia, Agitar founder and CTO, in a blog.

“The Change Risk Analysis and Prediction (CRAP) score uses cyclomatic complexity and code coverage from automated tests to help estimate the effort and risk associated with maintaining legacy code. We started working on an open-source experimental tool called “crap4j” that calculates the CRAP score for Java code. We need more experience and time to fine-tune it, but the initial results are encouraging and we have started to experiment with it in-house,” Savoia said.

The plug-in can be downloaded here.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author