Skip to content

Commit 6521b9e

Browse files
committed
Exclude .git folder from PoliCheck
1 parent 7d83494 commit 6521b9e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-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: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<PoliCheckExclusions>
2+
<!--Each of these exclusions is a folder name -if \[name]\exists in the file path, it will be skipped -->
3+
<!--<Exclusion Type="FolderPathFull">ABC|XYZ</Exclusion>-->
4+
<Exclusion Type="FolderPathFull">.git</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>

0 commit comments

Comments
 (0)