Re: [Codenarc-user] GrailsPublicControllerMethod
Brought to you by:
chrismair
From: Olivier G. <ogo...@sm...> - 2011-08-24 16:17:07
|
Thank you for taking this into consideration! I added a comment to: http://jira.grails.org/browse/GPCODENARC-23?focusedCommentId=66029#comment-66029 There should be some kind of DSL that allows to do this in Grails configiuration (BuildConfig.groovy), which generates the codenarc.propertiesat each build. On Wed, Aug 24, 2011 at 8:47 AM, <chr...@we...> wrote: > 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...> > 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... > https://lists.sourceforge.net/lists/listinfo/codenarc-user**** > > ** ** > |