How can we handle False Positive errors in SonarLint due to Lombok Classes

Please provide

  • Operating system: Windows 10
  • SonarLint plugin version: 8.1.0.65508
  • Programming language you’re coding in: Java
  • Is connected mode used:
    • Connected to SonarCloud or SonarQube (and which version): SonarQube 9.2.3

And a thorough description of the problem / question: SonarLint is analysing my Lombok class file with a Code Smell → ‘Classes should not have too many fields’. How do we handle thse kind of false Positive in SonarLint. This issues are not being prompted on SonarQube Server as I am providing lombok.config file under my project root.

Hey there.

Can you share a code example that demonstrates the issue so we can reproduce it on our side?