sonar-groovy
sonar-groovy copied to clipboard
Default value for sonar.lang.patterns.grvy does not apply in newer SonarQube versions
hi,
Groovy script files are not able to scan in 10.4 version.
We are using latest sonar scanner version 5.
Could anyone kindly help if anyone had faced the issue or how to fix the isse.
PFA error snippets
@deamon519 Hey,
We also faced this problem, but the solution turned out to be quite simple: just add the groovy patterns to the properties of your pom.xml file.
<properties>
...
<sonar.lang.patterns.grvy>**/*.groovy</sonar.lang.patterns.grvy>
...
</properties>
@deamon519 Hey,
We also faced this problem, but the solution turned out to be quite simple: just add the groovy patterns to the properties of your pom.xml file.
<properties> ... <sonar.lang.patterns.grvy>**/*.groovy</sonar.lang.patterns.grvy> ... </properties>
Thank you @yanmogilevchik
That should be the default. Probably an incompatibility of the groovy plugin with newer SonarQube versions.
That should be the default. Probably an incompatibility of the groovy plugin with newer SonarQube versions.
thank you
its working fine by changing to below