How to use SonarLint to scan Git's uncommitted code in IDEA?

I want to use SonarLint to scan the uncommitted code in the local Git. What should I do?
Is there any solution?

Hi,

Welcome to the community!

Simply install SonarLint in your IDE and start coding! It will check your open file automatically and raise issues as you work.

 
HTH,
Ann

Yes, thank you very much for your reply. I have done what you said, but SonarLint will scan and analyze all my codes. I hope it is to scan and analyze the uncommitted codes on my git. For some historical reasons, I do not want him to scan all the codes!

Hi,

SonarLint should be focused on the file you have open. Could you share a screenshot of where this is not the case?

 
Ann