You might be interested in Checkstyle : http://checkstyle.sf.net
It doesn't calculate metrics (not that I know of) but it is very useful in identifying possible problems or issues in code. Examples of style criteria are : - maximum lines per class and method - maximum number of parameters to methods - maximum nested depth for both try..catch and if..else - maximum number of returns per method - Complex boolean logic that could be simplified - Redundant code Then there are other checks for possible coding problems such as : - String comparison with == - if (var = 3) Also checks for javadocs. Can be set up as an ANT task which generates warning messages for each check that fails (This is very nice if you have more junior developers who are still learning), and is also a plugin for Eclipse and Netbeans. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CTJUG Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/CTJUG-Forum -~----------~----~----~----~------~----~------~--~---
