Skip to content

Commit

Permalink
Exclude the chromium source code from PoliCheck (#55)
Browse files Browse the repository at this point in the history
* Exclude the chromium source code from PoliCheck

* Try to workaround build issue

* YAML FTW

---------

Co-authored-by: Ladislau Szomoru <[email protected]>
  • Loading branch information
alexdima and lszomoru authored Jan 22, 2024
1 parent 2901d97 commit 3395465
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions PoliCheckExclusions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<PoliCheckExclusions>
<!-- All strings must be UPPER CASE -->
<!--Each of these exclusions is a folder name -if \[name]\exists in the file path, it will be skipped -->
<Exclusion Type="FolderPathFull">DEPS</Exclusion>
<!--Each of these exclusions is a folder name -if any folder or file starts with "\[name]", it will be skipped -->
<!--<Exclusion Type="FolderPathStart">ABC|XYZ</Exclusion>-->
<!--Each of these file types will be completely skipped for the entire scan -->
<!--<Exclusion Type="FileType">.ABC|.XYZ</Exclusion>-->
<!--The specified file names will be skipped during the scan regardless which folder they are in -->
<!--<Exclusion Type="FileName">ABC.TXT|XYZ.CS</Exclusion>-->
</PoliCheckExclusions>
4 changes: 4 additions & 0 deletions pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,14 @@ extends:
- 16.x

testSteps:
# https://github.com/nodejs/node-gyp/issues/2869
- script: python3 -m pip install setuptools
- script: npm ci
displayName: Install dependencies

- script: npm test
displayName: Test

publishPackage: ${{ parameters.publishPackage }}

policheckExclusionsFile: '$(Build.SourcesDirectory)/PoliCheckExclusions.xml'

0 comments on commit 3395465

Please sign in to comment.