Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Static code analysis for groovy with eclipse

I want to add static code analysis plugin to eclipse (Eclipse Mars 4.6). For that I added sonarlint plugin which contains rules for groovy project as well. But it could not analyse groovy files or can give any suggestions for the same.

I searched over net and found codenarc can be used for the same and sonarlint is also using reports by codenarc but codenarc plugin for eclipse is available till eclipse 4.1 only, not supported for the versions higher than that.

Has anybody tried anything to do static code analysis with groovy.

Thanks

like image 795
P Punam Avatar asked May 12 '26 05:05

P Punam


1 Answers

Unfortunately, you are correct. The eclipse plugin has not been updated in a while. If you are interested in taking that over, it would be much appreciated. As an alternate solution, you can use codenarc at the build tool level. Depending on your system, there should be a plugin for you: http://codenarc.sourceforge.net/codenarc-other-tools-frameworks.html

like image 184
codeJENNerator Avatar answered May 14 '26 09:05

codeJENNerator



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!