Can we select specific line of our code in Intellij and analyze using Sonarlint

Can we select specific line of our code in Intellij and analyze using Sonarlint. This would help me undertand analysis of my code if I am updating any prewriiten file

Hello @visheshgupta08071992 and welcome to the SonarSource community!
When you type new code into an existing source code file, SonarLint will automatically re-analyze that file on-the-fly and if you introduced new issues, they will appear almost instantly in your code editor.
Please also note that you can analyze any specific file/folder or even the whole project manually if you prefer, via right-click → SonarLint → Analyze with SonarLint.
I hope this can help, otherwise could you please explain a little more in details why would you like SonarLint to analyze only specific lines of code?

1 Like