False-Positive S2259 S2139

INFO: SonarScanner
INFO: Java 17.0.7 Eclipse Adoptium (64-bit)
INFO: Linux 3.10.0-1160.el7.x86_64 amd64
INFO: User cache: /root/.sonar/cache
INFO: Analyzing on SonarQube server
INFO: Default locale: "en_US", source code encoding: "UTF-8"
INFO: Load global settings

1、The info for “The following classes needed for analysis were missing:”
2、when use @Slf4j , java:S2139 will be report。it’s False-Positive。

public class  a {
public List<String> d() {
       try {
        } catch (Exception e) {
    return a;

3、S2259 has same False-Positive。

Did the SonarQube rules analyze the “.class”? When i use sonar , i got many False-Positive.

Hello @maming123450,

Sorry for the late reply. Could you, please, clarify a few things here:

  1. How do you execute the analysis? Is it Maven or Gradle scanners?
  2. Have you built the project before the analysis?
  3. Do you see the same errors when building the project?
  4. Do you use Lombok?
  5. Could you please provide your sonar configuration (properties for sonar analysis)?