Skip to content

Commit 2a7de01

Browse files
committed
Exclude .git folder from PoliCheck
1 parent 7d83494 commit 2a7de01

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.vsts-ci/templates/release-general.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ steps:
6262
suppressionsFile: ''
6363
# TermCheck AKA PoliCheck
6464
targetArgument: '$(Build.SourcesDirectory)/PowerShellEditorServices'
65+
optionsUEPATH: '$(Build.SourcesDirectory)/PowerShellEditorServices/tools/terms/UserExclusions.xml'
6566
optionsRulesDBPath: ''
6667
optionsFTPath: '$(Build.SourcesDirectory)/PowerShellEditorServices/tools/terms/FileTypeSet.xml'
6768
# tsa-upload

tools/terms/UserExclusions.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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">ABC|XYZ</Exclusion>-->
5+
<Exclusion Type="FolderPathFull">.GIT</Exclusion>
6+
<!--Each of these exclusions is a folder name -if any folder or file starts with "\[name]", it will be skipped -->
7+
<!--<Exclusion Type="FolderPathStart">ABC|XYZ</Exclusion>-->
8+
<!--Each of these file types will be completely skipped for the entire scan -->
9+
<!--<Exclusion Type="FileType">.ABC|.XYZ</Exclusion>-->
10+
<!--The specified file names will be skipped during the scan regardless which folder they are in -->
11+
<!--<Exclusion Type="FileName">ABC.TXT|XYZ.CS</Exclusion>-->
12+
</PoliCheckExclusions>

0 commit comments

Comments
 (0)