views:

271

answers:

1

Hi,

Are there any good code analysis tools available for Groovy? I'm looking for something similar to FindBugs, PMD, CheckStyle, etc. I may even be able to use some of these tools directly if they work on Java byte code rather than source code. A feature that would be particularly useful is the ability to identify obsolete code, though I realise that this is almost impossible to do with 100% certainty in a dynamic language. However, if the tool could even identify classes/methods that are possibly/probably unreferenced, that would be a good start.

The IntelliJ IDE generates a lot of very useful warnings about unidiomatic Groovy code, but ideally I'm looking for something that I can integrate into my build and generate a report.

Thanks, Don

+4  A: 

Take a look at CodeNarc