Add your own rules to Rational Software Analyzer

From the developerWorks archives

Mohammed Mostafa and Joshua Tessier

Date archived: December 20, 2016 | First published: March 25, 2010

IBM® Rational® Software Analyzer is a static analysis framework that detects potential problems in source code. It can detect a wide range of problems, from issues with coding style to resource leaks and potential lack of null pointer references. Although this software features many different rules, it is impossible to cover everyone's static analysis needs. But by writing custom rules for Rational Software Analyzer, developers can catch almost any problem that the tool does not include. Because it is a framework, it is very simple to modify and extend it for domain-specific requirements. This article walks you through the process of creating a useful rule and demonstrates how to make it better. In addition, you will add a quick fix to the rule so that you can quickly resolve the problem if you find it in your source code.

This content is no longer being updated or maintained. The full article is provided "as is" in a PDF file. Given the rapid evolution of technology, some steps and illustrations may have changed.



static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Rational, Java development
ArticleID=476618
ArticleTitle=Add your own rules to Rational Software Analyzer
publish-date=03252010