Directory execlusion support for sonarqube lint

I’m using sonarlint for ViusalStudio 2022. I’m not connected to SonarQube server. I’m trying to execlude entityframwork migrations folder from being analyzed. I created sonar-project.properties file in my root directory beside .proj file. The following is the conent of the file, however it couldn’t manage to exclude this directory. I know this feature is supported at server but my question is that whether this feature is supported for sonarlint.
Snippet

sonar.sources=.
sonar.exclusions=** / Migrations / ** / *
sonar.verbose = true

Hi,

Unfortunately, it’s not possible to define exclusions in the IDE for SonarLint for Visual Studio.

 
Ann

1 Like

Hello @Mahmoud_abdelsalam,
As Ann mentioned, excluding files or directories in SonarLint is not possible when you’re not connected to SonarQube or SonarCloud. Nevertheless, it is a feature that we’re considering in our product roadmap, you can follow this card to receive updates