Skip to content

Commit bb20f32

Browse files
jlee671heaths
authored andcommitted
Disable c26444 for prefast and exclude test files for binskim
1 parent 76fbe73 commit bb20f32

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

Diff for: .vsts-ci.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ extends:
2323
binskim:
2424
enabled: true
2525
scanOutputDirectoryOnly: true
26-
26+
analyzeTargetGlob: +:f|$(Build.SourcesDirectory)\bin\Release\*.exe;+:f|$(Build.SourcesDirectory)\bin\Release\*.dll;-:f|$(Build.SourcesDirectory)\bin\Release\*.test.*
27+
2728
stages:
2829
- stage: Build
2930
jobs:

Diff for: .vsts-compliance.yml

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ extends:
2727
binskim:
2828
enabled: true
2929
scanOutputDirectoryOnly: true
30+
analyzeTargetGlob: +:f|$(Build.SourcesDirectory)\bin\Release\*.exe;+:f|$(Build.SourcesDirectory)\bin\Release\*.dll;-:f|$(Build.SourcesDirectory)\bin\Release\*.test.*
3031
codeql:
3132
compiled:
3233
enabled: true

Diff for: test/VSIXBootstrapper.Test/CoInitializerTests.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,13 @@ TEST_CLASS(CoInitializerTests)
4848
}
4949
};
5050

51+
#pragma warning(push)
52+
#pragma warning(disable: 26444) // Ignore warning C26444: Don't try to declare a local variable with no name since it is intended for below initialization
5153
// CoInitializer must be in separate scope to test.
5254
{
5355
CoInitializer<TestTraits>();
5456
}
57+
#pragma warning(pop)
5558

5659
Assert::AreEqual<byte>(2, count);
5760
}

0 commit comments

Comments
 (0)