Skip to content

Commit 3395465

Browse files
alexdimalszomoru
andauthored
Exclude the chromium source code from PoliCheck (#55)
* Exclude the chromium source code from PoliCheck * Try to workaround build issue * YAML FTW --------- Co-authored-by: Ladislau Szomoru <[email protected]>
1 parent 2901d97 commit 3395465

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

PoliCheckExclusions.xml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<PoliCheckExclusions>
2+
<!-- All strings must be UPPER CASE -->
3+
<!--Each of these exclusions is a folder name -if \[name]\exists in the file path, it will be skipped -->
4+
<Exclusion Type="FolderPathFull">DEPS</Exclusion>
5+
<!--Each of these exclusions is a folder name -if any folder or file starts with "\[name]", it will be skipped -->
6+
<!--<Exclusion Type="FolderPathStart">ABC|XYZ</Exclusion>-->
7+
<!--Each of these file types will be completely skipped for the entire scan -->
8+
<!--<Exclusion Type="FileType">.ABC|.XYZ</Exclusion>-->
9+
<!--The specified file names will be skipped during the scan regardless which folder they are in -->
10+
<!--<Exclusion Type="FileName">ABC.TXT|XYZ.CS</Exclusion>-->
11+
</PoliCheckExclusions>

pipeline.yml

+4
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,14 @@ extends:
4343
- 16.x
4444

4545
testSteps:
46+
# https://github.com/nodejs/node-gyp/issues/2869
47+
- script: python3 -m pip install setuptools
4648
- script: npm ci
4749
displayName: Install dependencies
4850

4951
- script: npm test
5052
displayName: Test
5153

5254
publishPackage: ${{ parameters.publishPackage }}
55+
56+
policheckExclusionsFile: '$(Build.SourcesDirectory)/PoliCheckExclusions.xml'

0 commit comments

Comments
 (0)