How To Scan Only Updated/Newly Added Code In SonarLint for Visual Studio


I am using VisualStudio 2017 sonarlint extension to scan my code against the rule profile for my project. My language is C#
My requirement is to scan only the new/modified code before I commit.
I understand by default visual Studio scans only the open document. However, it’s not necessary that all modified files will be open always.
Is there any way I can scan only the modified files incrementally?
I just want to ensure new checkin doesn’t violate rules.

Hello @Biswanath_Chatterjee, I feel that this post is very similar to this one which is also from you: Detect Leak using SonarLint/VisualStudio

@Fabrice_Bellingard yes… You can link these 2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.