Java – Lombok annotation cannot be ignored – sonarqube

When I used the code coverage tool "sonarqube", I tried to ignore Lombok comments in my java project. I studied a lot about this, and I finished adding this attribute to the "Lombok. Config" file:

lombok.addLombokGeneratedAnnotation = true

However, when I execute the "MVN test" or "run with coverage" option in IntelliJ, I encounter this error in the console:

UnkNown key 'lombok.addLombokGeneratedAnnotation' (C:\Projects\...\lombok.config:3)

Of course, the generated coverage test will still not ignore the Lombok annotation. I use 0.8 1 version of Jacobo and 1.16 2 version of Lombok

Know how to make this work?

Solution

Longmu island Javadoc said

So try to update your Lombok version I have 1.18 2. Its working principle

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>