Skip to content

Commit ccf42bc

Browse files
authored
Exclude Python lib during PoliCheck (#53)
Exclude Pythion lib during PoliCheck
1 parent 90eb017 commit ccf42bc

File tree

5 files changed

+19
-4
lines changed

5 files changed

+19
-4
lines changed

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"typescript.tsserver.log": "off",
1313

1414
"editor.codeActionsOnSave": {
15-
"source.fixAll.eslint": true
15+
"source.fixAll.eslint": "explicit"
1616
},
1717
"eslint.codeActionsOnSave.rules": [
1818
"@typescript-eslint/semi",

PoliCheckExclusions.xml

Lines changed: 11 additions & 0 deletions
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">python</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>

build/pre-release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,6 @@ extends:
2626
ghCreateTag: true
2727
ghTagPrefix: pre-release/
2828

29-
publishExtension: ${{ parameters.publishExtension }}
29+
publishExtension: ${{ parameters.publishExtension }}
30+
31+
policheckExclusionsFile: '$(Build.SourcesDirectory)/PoliCheckExclusions.xml'

build/stable.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,5 @@ extends:
4444
4545

4646
publishExtension: ${{ parameters.publishExtension }}
47+
48+
policheckExclusionsFile: '$(Build.SourcesDirectory)/PoliCheckExclusions.xml'

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)