Re: [Codenarc-user] [ANN] Announcing CodeNarc 0.9
Brought to you by:
chrismair
From: Hamlet D'A. <ham...@gm...> - 2010-05-12 06:42:42
|
Thanks for the CodeNarc release and announcement Chris. I wrote a few of the new concurrency related CodeNarc rules for this release, and I have to say that writing a rule is quite easy and the testing support is great. If you are interested in AST Transformations then I recommend downloading the source and trying to write a new rule. The framework itself works great... we just need a whole ton more rules to make CodeNarc better. If you want some ideas about new rules to write then try porting some from FindBugs: http://findbugs.sourceforge.net/bugDescriptions.html And if you need help then email the CodeNarc mailing list. -- Hamlet D'Arcy ham...@gm... On Wed, May 12, 2010 at 3:33 AM, Chris Mair <chr...@ea...> wrote: > 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 D’Arcy) > > NestedSynchronizationRule (concurrency - Hamlet D’Arcy) > RunFinalizersOnExitRule (concurrency - Hamlet D’Arcy) > SynchronizedMethodRule (concurrency - Hamlet D’Arcy) > SynchronizedOnThisRule (concurrency - Hamlet D’Arcy) > ThreadLocalNotStaticFinalRule (concurrency - Hamlet D’Arcy) > ThreadYieldRule: (concurrency - Hamlet D’Arcy) > VolatileLongOrDoubleFieldRule: (concurrency - Hamlet D’Arcy) > > 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 > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Codenarc-user mailing list > Cod...@li... > https://lists.sourceforge.net/lists/listinfo/codenarc-user > > |