At present I am working for a group where source code (Java) for multiple projects have to be analysed by static code analysic tools
But I would like to write custom rules that I can add to the existing set of rules provided by the tool (the rules would involve mostly regular expressions matching for text/string within the source code).
Especially keeping the perspective that I should be able to easily write/add my own custom rules that can be used alongwith the existing list of rules of the tool.
Can anyone please suggest which tool (or combination of tools) among the below given list should I use ?
- PMD
- Checkstyle
- Findbugs
Edited : Thanks Ira for the direction. I am looking for static code analysis tools to be used along with Sonar. I hope now the question is clear.