Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
deamon519 opened this issue Mar 20, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@deamon519
Copy link

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

@yanmogilevchik
Copy link

@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
Copy link
Author

@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 deamon519 reopened this Apr 10, 2024
@deamon519
Copy link
Author

Thank you @yanmogilevchik

@TobiX
Copy link
Member

TobiX commented Apr 10, 2024

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

@deamon519
Copy link
Author

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

@TobiX TobiX added the bug Something isn't working label May 3, 2024
@TobiX TobiX reopened this May 3, 2024
@TobiX TobiX changed the title sonar groovy error Default value for sonar.lang.patterns.grvy does not apply in newer SonarQube versions May 3, 2024
@TobiX TobiX pinned this issue May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants