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

Is sonar-findbugs compatible with Sonarqube 10.x #724

Closed
ericrichtert opened this issue Apr 5, 2023 · 9 comments
Closed

Is sonar-findbugs compatible with Sonarqube 10.x #724

ericrichtert opened this issue Apr 5, 2023 · 9 comments
Labels

Comments

@ericrichtert
Copy link

Sonar version: 9.9
findbugs sonar plugin version: latest

We want to upgrade to SQ 10.0, is sonar-findbugs compatible with this version?

@gtoison
Copy link
Contributor

gtoison commented Apr 6, 2023

I've added SQ 10 to the integration tests and it seems to work just fine. See #725
The integration tests run the builds of some sample project and then check that the issues are reported in SonarQube.

I've just had to make some changes that only relate to the mocking of loggers for unit tests, that does not matter for the production code.

@gtoison
Copy link
Contributor

gtoison commented Apr 6, 2023

Hello @reitzmichnicht
I hope it's OK to ping you here since I saw your message in the SonarQube release annoucement
Could it be that the plugins need to be installed again? Anything interesting in the logs?

@reitzmichnicht
Copy link

We always build a fresh docker image, but it looks like that the plugins are not recognized anymore. I have to check the reason, maybe filesystem permissions issue.

@reitzmichnicht
Copy link

Hello @reitzmichnicht I hope it's OK to ping you here since I saw your message in the SonarQube release annoucement Could it be that the plugins need to be installed again? Anything interesting in the logs?

Except that the findbugs quality profiles are duplicated now (the new ones have the built-in badge) its working now since I fixed a small typo so that they are copied to the correct directory again.

@gtoison
Copy link
Contributor

gtoison commented Apr 26, 2023

Thanks, so we can say that the plugin works with SonarQube 10!

@gtoison gtoison closed this as completed Apr 26, 2023
@reitzmichnicht
Copy link

I have to revert my statement. Looks like that some (all?) findbug rules are now applied to main code AND test code. At least thats what we see. We have lots of new findings related to test code where those rules seem to be not applicable before.

@gtoison
Copy link
Contributor

gtoison commented May 2, 2023

The analysis of tests is actually a feature and was added in #706
It only activates when running with SonarQube >= 9.8

I've added an option to exclude tests from the anlysis in #720 but it is not released at this point.

Does it make sense and do you need a release with that new option to disable the analysis of tests?

@reitzmichnicht
Copy link

New behavior is fine, just a remark in the release notes would be great :)

@gtoison
Copy link
Contributor

gtoison commented May 3, 2023

Good point: the release note had the corresponding PR but it was not clear at all
Remark added!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants