Re: [Codenarc-user] Ruleset Resources Namespace Conflict
Brought to you by:
chrismair
From: Jason S. <js...@gm...> - 2011-01-21 14:35:07
|
I'm attempting to run some CodeNarc and PMD rules as part of our TestNG suite (via AntBuilder + CodeNarc task). The workaround for me isn't a bit deal (and it probably makes sense to be more selective about the rules I apply); however, keep in mind that if someone already using PMD happens to add the CodeNarc jar to their classpath, they'll likely have problems. On Fri, Jan 21, 2011 at 8:20 AM, <chr...@wa...> wrote: > > Yes, in hindsight, I should have put the ruleset files in a unique > namespace, and as Hamlet suggested, avoiding specific rulesets altogether > might have been a better approach. > > Is there anything forcing you to use the same classpath for both CodeNarc > and PMD? > > I don't think we can, at this point, move the CodeNarc ruleset files, since > that would break every user. Copying the ruleset files to a different > location may help as a workaround, but I don't think that would solve the > problem if the CodeNarc files are "hiding" the CodeNarc ones. > > Chris > > > *Hamlet DArcy <ham...@ca...>* > > 01/21/2011 09:05 AM > To > Jason Stell <js...@gm...> > cc > cod...@li... > Subject > Re: [Codenarc-user] Ruleset Resources Namespace Conflict > > > > > CodeNarc is modeled on PMD so we have all those ruleset files in common. > Personally, I find both projects a little difficult to configure. I'd prefer > to see one massive configuration file. But that's water under the bridge at > this point. As you know, there is nothing special about that location. You > /can/ copy all the contents of the ruleset xml files and dump them into one > big file. > > -- > Hamlet D'Arcy > ham...@ca... > > ----- Original Message ----- > > It does kinda stink ;) I would have suggested a change to PMD resource > > names, as well, but that project has been around a long time and a > > change would probably impact many more users (still, as a good > > practice, they should also think about putting resources in an > > appropriate namespace). > > > > > > As a workaround I can always extract/copy the rulesets I'm using and > > put them in a different local namespace. > > > > > > Oh - and thanks for CodeNarc! > > > > > > Regards > > Jason > > > > > > On Fri, Jan 21, 2011 at 1:30 AM, Hamlet DArcy < ham...@ca... > > > wrote: > > > > > > > > > If I have both CodeNarc and PMD libs in my classpath, I have > > > problems > > > > Well that stinks. If we rename the rules then we have backwards > > compatibility issues. :( We'll have to discuss what to do. > > > > Do you need a workaround temporarily? Or do you have that covered? > > > > > > -- > > Hamlet D'Arcy > > ham...@ca... > > > > > > > > > > ----- Original Message ----- > > > If I have both CodeNarc and PMD libs in my classpath, I have > > > problems > > > with one or the other, because both have resources with the same > > > name: > > > e.g., 'rulesets/basic.xml', 'rulesets/design.xml', etc. How about > > > using a safer resource namespace, like 'org/codenarc/rulesets/...'? > > > > > > > > > Thanks! > > > Jason > > > > ------------------------------------------------------------------------------ > > > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > > > Finally, a world-class log management solution at an even better > > > price-free! > > > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > > > February 28th, so secure your free ArcSight Logger TODAY! > > > http://p.sf.net/sfu/arcsight-sfd2d > > > _______________________________________________ > > > Codenarc-user mailing list > > > Cod...@li... > > > https://lists.sourceforge.net/lists/listinfo/codenarc-user > > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better > price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > Codenarc-user mailing list > Cod...@li... > https://lists.sourceforge.net/lists/listinfo/codenarc-user > > ForwardSourceID:NT000F67C6 > |