sonar-groovy icon indicating copy to clipboard operation
sonar-groovy copied to clipboard

Default value for sonar.lang.patterns.grvy does not apply in newer SonarQube versions

Open deamon519 opened this issue 1 year ago • 5 comments

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

image gry gry1

deamon519 avatar Mar 20 '24 00:03 deamon519

@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>

yanmogilevchik avatar Apr 09 '24 07:04 yanmogilevchik

@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 avatar Apr 10 '24 00:04 deamon519

Thank you @yanmogilevchik

deamon519 avatar Apr 10 '24 00:04 deamon519

That should be the default. Probably an incompatibility of the groovy plugin with newer SonarQube versions.

TobiX avatar Apr 10 '24 09:04 TobiX

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 ... <sonar.lang.patterns.grvy>**/*.groovy</sonar.lang.patterns.grvy> ...

deamon519 avatar Apr 10 '24 09:04 deamon519