Re: [Codenarc-developer] PMD Integration ?
Brought to you by:
chrismair
From: Romain P. <be...@gm...> - 2012-01-27 10:22:23
|
Hi, First of all, sorry for sending such a short email - I was exhausted yesterday and I should have known better :) Well, first state of art on PMD. Basically PMD has been modified (by Ryan Gustavson) to process and execute rules on top of AST in a more abstract manner. Before then, PMD was deeply tied to the AST provided, and now you can simply "plug" an AST, do a little plumbing and "voilà", PMD can now support rules for a new language. It's of course not as easy as that, but we already managed to do it for EcmaScript (Javascript) and XML - and therefore all XML based languages, such as XSL. My plan will be to support other JVM based languages, such as Groovy, Scala and Ceylon, as they all come with AST. In a second time, we might dwelve into adding support of non Java based languages, if there is an easy way to do it. What I'm fishing for in this email is find a way to work closely with Codenarc's developer on the Groovy integration, because I assume (I may be wrong) that we could easily reuse in PMD whatever you've been doing to generate a AST from a Groovy file. Now, I utterly aplogized, because I didn't do my homework before sending this email (ie I didn't look at the souce code of Codenarc), so I would completly understand if you were to say to me "Just look at the code, moron !" :) On 26 January 2012 17:22, Hamlet D'Arcy <ham...@gm...> wrote: > Rules are implemented as ast transformations, but the groovy compiler is > quite different from java's. What does it mean for a language to be > integrated? What is your vision? > > -- > Hamlet D'Arcy > ham...@gm... > > On Jan 26, 2012 4:35 PM, "Romain Pelisse" <be...@gm...> wrote: > >> Hi Codenarc Developer, >> >> After a year of hiatus, I'm happy to announce that development and PMD >> has resume and that we will release, soon, a PMD 5.0 which allow to add >> other language (than Java). In this regards, when I stumbled upon Codenarc, >> I wondered how close you are to PMD. The ruleset structure and >> organizationn does feel quite familiar :) , but how did you implemented the >> rule ? Using an AST lilke PMD ? >> >> It could make sense that we work together, on way or the other - >> hopefully reducing the amount of work on both project... >> >> >> >> -- >> Romain PELISSE, >> *"The trouble with having an open mind, of course, is that people will >> insist on coming along and trying to put things in it" -- Terry Pratchett >> * >> http://belaran.eu/wordpress/belaran >> >> >> ------------------------------------------------------------------------------ >> Keep Your Developer Skills Current with LearnDevNow! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-d2d >> _______________________________________________ >> Codenarc-developer mailing list >> Cod...@li... >> https://lists.sourceforge.net/lists/listinfo/codenarc-developer >> >> -- Romain PELISSE, *"The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it" -- Terry Pratchett* http://belaran.eu/wordpress/belaran |