[Codenarc-user] [ANN] Announcing CodeNarc 0.21
Brought to you by:
chrismair
From: Chris M. <cm...@gm...> - 2014-04-23 02:27:25
|
The *CodeNarc Team *is proud to announce the release of version *0.21*. CodeNarc <http://codenarc.sourceforge.net/> is a static analysis tool for Groovy source code. Version *0.21* adds 15 new rules (bringing the total to 337 rules) and a bunch of bug fixes and enhancements. Check us out on GitHub<https://github.com/CodeNarc/CodeNarc> ! *New Rules* - #30: *GrailsMassAssignment* rule (grails) - Checks for mass assignment from a params Map within Grails domain classes. (Thanks to Brian Soby) - #38: *NoWildcardImports *rule (imports) - Wildcard imports, static or otherwise, should not be used. (Thanks to Kyle Boon) - #41: *ConsecutiveBlankLines *rule (formatting) - Makes sure there are no consecutive lines that are either blank or whitespace only. (Thanks to Joe Sondow) - #42: *BlankLineBeforePackage *rule (formatting) - Makes sure there are no blank lines before the package declaration of a source code file. (Thanks to Joe Sondow) - #43: *FileEndsWithoutNewline *rule (formatting) - Makes sure the source code file ends with a newline character. (Thanks to Joe Sondow) - #44: *MissingBlankLineAfterImports *rule (formatting) - Makes sure there is a blank line after the imports of a source code file. (Thanks to Joe Sondow) - #46: *MissingBlankLineAfterPackage *rule (formatting) - Makes sure there is a blank line after the package statement of a source code file. (Thanks to Joe Sondow) - #47: *TrailingWhitespaceRule (*formatting) - Checks that no lines of source code end with whitespace characters. (Thanks to Joe Sondow) - #411:* ExceptionExtendsThrowable *rule (exceptions) - Checks for classes that extend Throwable. Custom exception classes should subclass Exception or one of its descendants. - #341:* UnnecessaryCast *rule (unnecessary) - Checks for unnecessary cast operations. - #149:* IllegalSubclass *rule (generic) - Checks for classes that extend one of the specified set of illegal superclasses. - #157:* UnnecessaryToString *rule (unnecessary) - Checks for unnecessary calls to toString(). - #152:* JUnitPublicProperty *rule (junit) - Checks for public properties defined on JUnit test classes. - #422:* ToStringReturnsNull *rule (design) - Checks for toString() methods that return null. - #143:* MultipleUnaryOperators *rule (basic) - Checks for multiple consecutive unary operators. *Updated and Enhanced Rules* #31: *UnusedImport*: Extended to now also detect cases where the imported class name occurs as a substring in the source code. (Thanks to Rene Scheibe) #36: *UnnecessaryDefInMethodDeclaration*: Prevent false positives from modifiers within quoted method name. (Thanks to Rene Scheibe) #37: *LineLength*: Flags to ignore import and package statements line length. (Thanks to Kyle Boon) #35: *UnnecessaryPackageReference*: raises confusing violation for Script with package. #48: Fix Method chaining breaks *SpaceAfterComma*. #49: Fix *SpaceBeforeOpeningBrace* doesn't work on switch statements. #50: Fix *UnnecessaryDotClass *doesn't work if class is qualified #153: Fix *ClosureStatementOnOpeningLineOfMultipleLineClosure* does not catch multiline closure with only a single statement. Visit the CodeNarc Home Page <http://codenarc.sourceforge.net/> |