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
return false as soon as a final equals method is found #2341
Conversation
tests seem to have failed. I had the same locally, after relaunching they passed |
* SONARJAVA-2992 rewrite rule S3419 * Fix from review * Add test case and fix rule when empty content
Hey @troosan , Thanks for the contribution. I did not had the time to have a look yet, but can you rebase your branch on top of our master? The issue which was making the travis build fail has been solved. Once this is rebased, I'll have a look at your PR and review it. Cheers, |
@m-g-sonar Thanks, I rebased locally and tried to build but I'm getting the following error:
Are you sure that library has been published? |
@m-g-sonar never mind it seems the dependency exists for Jenkins. |
@troosan Yeah, sorry for that. We are currently reworking the XML handling of the SonarJava plugin... And I did not realized we are relying on a dependency which is not yet on maven central. So you won't be able to build locally. That's pretty bad. Currently, the new artifact is only visible from our own infrastructure. This should get back to normal in a few days. In the meantime, travis-ci will pass, as we configured it to rely on our own base. If you want to check your build locally, a workaround could be to:
|
that's indeed what I did :-) |
@troosan thanks again for your contribution! I merged the pull request (#2375) which included your fix, rebased. I slightly reworked the rule at the same time. Your commit 9a33d05 is now part of our master. I'm consequently closing this PR. Thanks again for helping us making SonarJava every time a bit better. Cheers, |
This PR fixes issue reported here: https://community.sonarsource.com/t/rule-s2160-false-positive-when-class-has-one-parent-with-non-final-equals-method/4885