[Codenarc-user] [ANN] Announcing CodeNarc 0.9
Brought to you by:
chrismair
From: Chris M. <chr...@ea...> - 2010-05-12 01:41:56
|
<http://codenarc.sourceforge.net/> CodeNarc is a static analysis tool for Groovy source code. Version 0.9 includes: Bug Fixes * Fix bug #2985592: MissingPropertyException: No such property: W3C_XML_SCHEMA_NS_URI. * XML RuleSet: Allow wildcards (*) in <include> and <exclude>. * NestedBlockDepthRule: Ignore first level of closure for Closure Fields (since they are really equivalent to methods). New Size/Complexity Rules * AbcComplexityRule - Check ABC size/complexity score against threshold for method and class average (size) * CyclomaticComplexityRule - Check Cyclomatic Complexity against threshold for method and class average (size) New Concurrency Rules (from Hamlet DArcy) * NestedSynchronizationRule (concurrency - Hamlet DArcy) * RunFinalizersOnExitRule (concurrency - Hamlet DArcy) * SynchronizedMethodRule (concurrency - Hamlet DArcy) * SynchronizedOnThisRule (concurrency - Hamlet DArcy) * ThreadLocalNotStaticFinalRule (concurrency - Hamlet DArcy) * ThreadYieldRule: (concurrency - Hamlet DArcy) * VolatileLongOrDoubleFieldRule: (concurrency - Hamlet DArcy) New Basic Rules * CloneableWithoutCloneRule (basic - Hamlet D'Arcy & René Gröschke) * ConstantIfExpressionRule (basic) * ConstantTernaryExpressionRule (basic) * UnnecessaryTernaryExpressionRule (basic) New Features and Infrastructure * Deprecate GrailsSessionReferenceRule. Default enabled to false. * StatelessClassRule: Add setAddToIgnoreFieldNames() method (adds to ignoreFieldNames). * Potential BREAKAGE: Add new <rule>.description.html property for each rule. If you have overridden the <rule>.description message for a predefined rule in a codenarc-messages.properties file, you will have to change those message keys to <rule>.description.html. * Do not include disabled rules in list of rules at bottom of HTML/XML report. * UnusedVariableRule: Fix limitation: Does not recognize variable references on the same line as the variable declaration. * CodeNarcRunner: Add System.out println of summary counts. * MethodSizeRule: Apply to constructors as well. <http://codenarc.sourceforge.net> http://codenarc.sourceforge.net |