[Codenarc-user] [ANN] Announcing CodeNarc 1.1
Brought to you by:
chrismair
From: Chris M. <cm...@gm...> - 2018-01-14 19:20:28
|
The *CodeNarc Team *is proud to announce the release of version *1.1*. CodeNarc <http://codenarc.org/> is a static analysis tool for Groovy source code. Version *1.1* includes 9 new rules and several enhancements and bug fixes. See the full details in the release notes <https://github.com/CodeNarc/CodeNarc/blob/master/CHANGELOG.md>. *New Rules* - MissingOverrideAnnotation rule (enhanced) - Checks for methods that override a method in a super class or implement a method in an interface but are not annotated with @Override. - Indentation rule (formatting) - Check indentation for class, method and field declarations and initial statements. - InvertedCondition rule (convention) - An inverted condition is one where a constant expression is used on the left hand side of the equals comparision. Such conditions can be confusing especially when used in assertions where the expected value is by convention placed on the right hand side of the comparision. - MethodReturnTypeRequired rule (convention) - Checks that method return types are not dynamic, that is they are explicitly stated (and not using *def*). - MethodParameterTypeRequired rule (convention) - Checks that method parameters are not dynamically typed, that is they are explicitly stated (and not using *def*). - FieldTypeRequired rule (convention) - Checks that field types are explicitly specified (and not using *def*) - VariableTypeRequired rule (convention) - Checks that variable types are explicitly specified in declarations (and not using *def*) - BlockStartsWithBlankLine rule (formatting) - Checks that code blocks such as method bodies, closures and control structure bodies do not start with an empty line. - BlockEndsWithBlankLine rule (formatting) - Checks that code blocks such as method bodies, closures and control structure bodies do not end with an empty line. Check us out on GitHub <https://github.com/CodeNarc/CodeNarc>! The Grails CodeNarc Plugin <http://grails.org/plugin/codenarc> has been updated to version *1.1* as well. |