Re: [Codenarc-user] GrailsPublicControllerMethod
Brought to you by:
chrismair
From: <chr...@we...> - 2011-08-24 12:48:22
|
Ideally, yes. Unfortunately, the Grails CodeNarc plugin is just a wrapper for regular CodeNarc. CodeNarc is not executing within the Grails container, and has no notion of what the "current" version of Grails is. I think any customization like this would need to be done within the plugin, and probably at plugin installation/upgrade time, but I'm not sure of a clean and straightforward way to do that. Perhaps create or append to a "codenarc.properties" file that turns that rule off if the plugin script is executed from Grails 2.x? Hmmm. From: Olivier Gourment [mailto:ogo...@sm...] Sent: Monday, August 22, 2011 10:44 PM To: Bobby Warner Cc: cod...@li... Subject: Re: [Codenarc-user] GrailsPublicControllerMethod Ideally, the codenarc plugin would have some knowledge about which rules apply to which version of Grails, *and* which version of Grails the project uses? On Mon, Aug 22, 2011 at 2:15 PM, Bobby Warner <bob...@gm...<mailto:bob...@gm...>> wrote: The GrailsPublicControllerMethod rule should be removed from CodeNarc since Grails 2.0 uses methods instead of closures by default. Thanks, Bobby ------------------------------------------------------------------------------ uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ Codenarc-user mailing list Cod...@li...<mailto:Cod...@li...> https://lists.sourceforge.net/lists/listinfo/codenarc-user |