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

[Question] Ignore lombok annotations #151

Open
robertop87 opened this issue Mar 29, 2018 · 1 comment
Open

[Question] Ignore lombok annotations #151

robertop87 opened this issue Mar 29, 2018 · 1 comment

Comments

@robertop87
Copy link

Hi there,

Currently I'm using this awesome cobertura plugin, in the coverage results I have the lombok annotation @EqualsAndHashCode marked as un covered.

I have my cobertura task configured like this:

cobertura {
    coverageIgnoreTrivial = true
    coverageIgnoreMethodAnnotations = [ "lombok.EqualsAndHashCode" ]
}

But the marked still in my reports, do you have any idea how to skip the lombok annotations?

Thanks in advanced

@stevesaliman
Copy link
Owner

stevesaliman commented Apr 1, 2018

I've never used Lombok before, and I'm not sure exactly what you're seeing. On the test I ran, the annotation itself was the thing that showed up as being uncovered.

I suspect that the problem lies somewhere in the fact that the coverageIgnoreMethodAnnotations property is designed to ignore annotations on methods and the @EqualsAndHashCode annotation appears to be a class annotation.

There is some discussion about this in projectlombok/lombok#1014. It seems that the lombok team is aware of this, but I wasn't clear on if they had a solution, or how you'd need to configure lombok to use it, but it might make more sense to a lombok user.

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

No branches or pull requests

2 participants