SonarQube Lombok Malicious code error

SonarQube Lombok About 403 words

错误原因

SonarQube上检测报以下错误:

Malicious code error - May expose internal representation by returning reference to mutable object error

原因

sonar-findbugs插件原因。

解决方法

可以禁用该规则。

参考

https://community.sonarsource.com/t/sonar-lombok-issue/61296

https://stackoverflow.com/questions/68311821/lombok-annotations-give-malicious-code-error-may-expose-internal-representatio

https://projectlombok.org/features/configuration

Views: 1,820 · Posted: 2022-07-22

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓


Today On History
Browsing Refresh