[ANN] Announcing CodeNarc 1.2

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[ANN] Announcing CodeNarc 1.2

chris.mair-2
The CodeNarc Team is proud to announce the release of version 1.2.

CodeNarc is a static analysis tool for Groovy source code. 
 
Version 1.2 includes 5 new rules and several enhancements and bug fixes. See the full details in the release notes
 
New Rules
  • StaticFieldsBeforeInstanceFields rule (convention) - Enforce that all static fields are above all instance fields within a class.
  • StaticMethodsBeforeInstanceMethods rule (convention) - Enforce that all static methods within each visibility level (public, protected, private) are above all instance methods within that same visibility level.
  • PublicMethodsBeforeNonPublicMethods rule (convention) - Enforce that all public methods are above protected and private methods.
  • GrailsDomainStringPropertyMaxSize rule (grails) - String properties in Grails domain classes have to define maximum size otherwise the property is mapped to VARCHAR(255) causing runtime exceptions to occur.
  • NoJavaUtilDate rule (convention) - Do not use java.util.Date. Prefer the classes in the java.time.* packages. Checks for construction of new java.util.Date objects.
Check us out on GitHub!
 
The Grails CodeNarc Plugin has been updated to version 1.2 as well.
 
 
 
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Announcing CodeNarc 1.2

paulk_asert
Fantastic to see a new release! Thanks.


On Tue, Jul 10, 2018 at 4:46 AM <[hidden email]> wrote:
The CodeNarc Team is proud to announce the release of version 1.2.

CodeNarc is a static analysis tool for Groovy source code. 
 
Version 1.2 includes 5 new rules and several enhancements and bug fixes. See the full details in the release notes
 
New Rules
  • StaticFieldsBeforeInstanceFields rule (convention) - Enforce that all static fields are above all instance fields within a class.
  • StaticMethodsBeforeInstanceMethods rule (convention) - Enforce that all static methods within each visibility level (public, protected, private) are above all instance methods within that same visibility level.
  • PublicMethodsBeforeNonPublicMethods rule (convention) - Enforce that all public methods are above protected and private methods.
  • GrailsDomainStringPropertyMaxSize rule (grails) - String properties in Grails domain classes have to define maximum size otherwise the property is mapped to VARCHAR(255) causing runtime exceptions to occur.
  • NoJavaUtilDate rule (convention) - Do not use java.util.Date. Prefer the classes in the java.time.* packages. Checks for construction of new java.util.Date objects.
Check us out on GitHub!
 
The Grails CodeNarc Plugin has been updated to version 1.2 as well.
 
 
 
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Announcing CodeNarc 1.2

Remko Popma
In reply to this post by chris.mair-2

On Tue, Jul 10, 2018 at 3:46 AM, <[hidden email]> wrote:
The CodeNarc Team is proud to announce the release of version 1.2.

CodeNarc is a static analysis tool for Groovy source code. 
 
Version 1.2 includes 5 new rules and several enhancements and bug fixes. See the full details in the release notes
 
New Rules
  • StaticFieldsBeforeInstanceFields rule (convention) - Enforce that all static fields are above all instance fields within a class.
  • StaticMethodsBeforeInstanceMethods rule (convention) - Enforce that all static methods within each visibility level (public, protected, private) are above all instance methods within that same visibility level.
  • PublicMethodsBeforeNonPublicMethods rule (convention) - Enforce that all public methods are above protected and private methods.
  • GrailsDomainStringPropertyMaxSize rule (grails) - String properties in Grails domain classes have to define maximum size otherwise the property is mapped to VARCHAR(255) causing runtime exceptions to occur.
  • NoJavaUtilDate rule (convention) - Do not use java.util.Date. Prefer the classes in the java.time.* packages. Checks for construction of new java.util.Date objects.
Check us out on GitHub!
 
The Grails CodeNarc Plugin has been updated to version 1.2 as well.