msamodov
(Mikhail Samodov)
January 6, 2023, 1:07am
1
i need to exclude file(s) below from analysys.
SourceCode/Services.Common.IntegrationTest/Exchange/BrPubMessageTest.cs
i have added to “Global Source File Exclusions” filters below but files are still being analyzed.
**/*Test.cs
**/*.IntegrationTest/**
**/*test/**/*.*
**/*test*/**
ganncamp
(G Ann Campbell)
January 6, 2023, 5:29pm
2
Hi,
First, you want to be making this edit in project-level exclusions unless all (most?) of your projects both have this file and need to exclude it.
Second, that global setting excludes source files, and presumably this is classed as a test file (right?).
Regarding your patterns:
**/*test*/**
- this one ends with a directory wildcard & doesn’t actually specify which files to exclude
**/*test**/*.*
- this one specifies files, but the pattern matching is case-sensitive
**/*.IntegrationTest/**
- again, no files
**/*Test.cs
- this one ought to work if it’s specified in the project-level test file exclusions.
HTH,
Ann