SonarQube Java: False positive for Lombok Value (class should be declared as final)

Hey guys,

I am using SonarQube 9.9.3. I get a false positive with Java:

    @Value
    private static class SomeClass {
        List<String> something;
        List<String> else;
    }

Class SomeClass should be declared as final. checkstyle:com.puppycrawl.tools.checkstyle.checks.design.FinalClassCheck

Lombok Value marks the class as final already: @Value

It seems that this was previously already fixed by https://sonarsource.atlassian.net/browse/SONARJAVA-3320?jql=text%20~%20"lombok%20value".

The upgrade to SonarQube 9.9.3 made the issue reappear for us.

I am not sure if this belongs to SonarQube or CheckStyle?

Thanks,
Jens

Hey there.

This specific rule is coming from GitHub - checkstyle/sonar-checkstyle: Support on Checkstyle in SonarQube. Officially transfered from https://github.com/SonarQubeCommunity/sonar-checkstyle. You’ll want to reach out to them (or GitHub - checkstyle/checkstyle: Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. By default it supports the Google Java Style Guide and Sun Code Conventions, but is highly configurable. It can be invoked with an ANT task and a command line program.) to report any false-positives.