Re: [Codenarc-developer] PMD Integration ?
Brought to you by:
chrismair
From: Romain P. <be...@gm...> - 2012-01-27 11:36:29
|
On 27 January 2012 11:50, Hamlet DArcy <ham...@ca...> wrote: > So is there a generic AST API that PMD will provide and we need to adapt > CodeNarc to that? Now, on our side, I just want to grab your groovy AST and add it to PMD, so that PMD can support Groovy out of the box. > One thing I really like about PMD is the XQuery syntax for rules. I have > wanted to port that to CodeNarc but maybe what we need to do instead is > port CodeNarc to PMD. > Well, it depends what you want to do. If you are thinking that PMD features in terms of integration (Maven, Ant, Eclipse) and rules processing are good enough for you, you may want to simply use add Groovy support to PMD, and renaming the resulting product Codenarc. (ie clearly reducing the code based you have to take care of). > If there is a generic API then please send a link. I'd like to read it. > There are many things that are possible in Java that are not possible in > Groovy because there is no type information. How did ECMAScript handle that? > Well, the sad thing is that most of the work was done by Ryan Gustavson a while back (2010/2011) and that he has stop working on it (he got a baby which serioulsy dommaged his coding time :) ), so I cannot tell you about such detail. I can just tail, we do have a somewhat working support for ECMAScript. Please, fell free to poke around PMD code (I'll do so for Codenarc's one ;) ) and ask us question if you are suprised. -- 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 |