-
Notifications
You must be signed in to change notification settings - Fork 26
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
Cobertura ignoreTrivial for Sonar not reflecting. #14
Comments
Hi, I implemented a similar system without using the Then, I added the following piece of code in my
Then I use, the annotation However, there is an alternative solution, instead of avoiding the test of a getter/setter, make it easier in just couple of lines. For that you can have a look at this library: https://github.com/oshoukry/openpojo Regards, Geoffrey |
Hi Geoffrey, Thanks for updating. But adding And in case of the alternative solution, that is something not fitting us to replace our POJO's with. Is there any way we can pass that ignoreTrivial and get rid of the test for getters and setters? |
Hi @tan31989, Sorry for this late answer. |
Hi @galexandre, Thank you for the feedback, we have tried the above solution and it was not of any help. We had no other choice but to choose Jacoco's integration. Regards, |
Hi,
We use this current plugin for integration with sonar and are quiet not getting the changes seen to eliminate getter and setter methods of the class when it comes to cobertura.
As explained here for the maven plugin: https://stackoverflow.com/questions/8225888/ignore-methods-in-class-cobertura-maven-plugin
I tried to do the same for sonar plugin using the following option:
Unfortunately this is not ignoring the getter's and setter's for us.
Could you help us to understand what more can be done?
Regards.
The text was updated successfully, but these errors were encountered: