You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@groovy.apache.org by ch...@wellsfargo.com on 2018/01/15 00:36:21 UTC

[ANN] Announcing CodeNarc 1.1

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.



Re: [ANN] Announcing CodeNarc 1.1

Posted by Nathan Harvey <na...@gmail.com>.
I'll have to try this out! Is the IntelliJ plugin still under development?



--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html

Re: [ANN] Announcing CodeNarc 1.1

Posted by Daniel Sun <re...@hotmail.com>.
Nice work!

Cheers,
Daniel.Sun




--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html

Re: [ANN] Announcing CodeNarc 1.1

Posted by Paul King <pa...@asert.com.au>.
Great work!

On Mon, Jan 15, 2018 at 10:36 AM, <ch...@wellsfargo.com> wrote:

> 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.
>
>
>