Feature Request: Implement support for Groovy

As the title says, I would very much appreciate if support for Groovy could be implemented!

Our entire codebase across many projects across tens of thousands of lines of code is written in Groovy. We’re currently using SonarQube to get an insight into the code issues and smells, but that’s after pushing your changes to a pipeline which in turn will update SonarQube, which can take a while.

I first thought, if SonarQube supports Groovy then why can’t SonarLint? But then I read this stackoverflow answer from Julien grails - How do I analyze Groovy code with Sonarlint for IntelliJ? - Stack Overflow
saying that SonarQube doesn’t really support Groovy, it just uses the reports from CodeNarc.

So then my feature request becomes this: Please implement Groovy support for both SonarQube and SonarLint :slight_smile:

1 Like

Hi Nermin,

Thanks for posting, welcome to the Sonar Community!

I’m impressed that you have tens of thousands of LOC of Groovy!

Could you share more about how you are using Groovy and what you feel Sonar could help detect in the code?

Hi Gabriel,

Sorry for the late answer.

That is quite an open ended question. I can’t really disclose how we are using Groovy except that Groovy + Grails is the main programming stack at our client. And the client has some internal goals to keep a certain quality of code when it comes to code coverage and code smells. That’s why they use SonarQube. As a developer, SonarQube is nice but a plugin like SonarLint which integrates directly into your editor is even better. Because you can see and fix your issues proactively instead of retroactively.

I hope this could give some context.

1 Like