SonarLint vscode doesnt scan file inside project folder

In visual studio code, sonarlint does not work when I open a file in the folder. When you export a single file, it works without any problems How can i trigger it to scan ?

I am using java file.
sonarlint version: v3.14.0

Hey there.

Can you clarify what you mean by “export a single file”?

As briefly, I would like to scan my entire project folder how can i scan with SonarLint? It just scan the opened file not whole folder.

Hello @159samet and welcome to the Sonar community!
In the Sonar ecosystem, the main role of SonarLint is to help developers not to introduce new issues in the code they are writing. This is why SonarLint analyzed the file your currently working on, and we suggest to use SonarQube or SonarCloud to analyze your pull request and your whole project branches.

I’d be interested to know if using SonarQube/SonarCloud is a good fit for your need (and if not, why not :wink:).