SonarLint plugin version: SonarLint 7.4.0.46482 in Eclipse 2022-06 (4.24.0) 20220609-1112
Is connected mode used:
Connected to SonarCloud or SonarQube (and which version): Developer Edition - Version 8.9.9 (build 56886)
And a thorough description of the problem / question:
After successfully connected to SonarQube, I’ve wrote a simple code that basically will trigger some of the sonar violation but SonarLint does not seem to highlight the statement that violates the rule as it should be.
For example, the rule is a “Unused field should be removed” rule. I’ve created a class with unused fields but there’s no Sonar violation reported in Eclipse.
Attached is the SonarLint console log file. SonarLint Log.log (72.1 KB)
Can you share this file, where the issue is not being raised? file:/D:/projects/testproject-terneuzen-synq/testproject-main/src/main/java/com/companyA/testproject/tz/impl/TestProjectServiceImpl.java
I believe the log file attached together with the first comment of this thread is the one with “Verbose output” + “Analysis Log” enabled.
Sorry unfortunately, I’m unable to share the project as it’s confidential. But basically you can try to create a simple Java Maven project with some packages and the class example in comment#3 of this thread.
The code snippet is not complete, as imports are missing, so I’m not sure which dependencies you are using. Hence my request to isolate what you observe in a very simple project so that we can easily reproduce it