From 2671776cec7e9997424ce2c97a874001ca236c66 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Wed, 1 Sep 2021 14:43:08 -0700 Subject: [PATCH] Explicitly set `targetArgument` for TermCheck The `optionsXS` flag defaults to 1 (to enable recursion). What's missing is the target argument, our sources directory. (It's probably defaulting to the given value, but we can explicit about this.) We just need to not override `optionsXS` as we were previously doing with 0 to disable recursion. --- tools/releaseBuild/azureDevOps/templates/compliance.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/releaseBuild/azureDevOps/templates/compliance.yml b/tools/releaseBuild/azureDevOps/templates/compliance.yml index 280ae3551..f8390e0fd 100644 --- a/tools/releaseBuild/azureDevOps/templates/compliance.yml +++ b/tools/releaseBuild/azureDevOps/templates/compliance.yml @@ -84,8 +84,8 @@ jobs: displayName: 'Run PoliCheck' inputs: targetType: F + targetArgument: '$(Build.SourcesDirectory)' optionsFC: 0 - optionsXS: 1 optionsPE: '1|2|3|4' optionsHMENABLE: 0 optionsRulesDBPath: '$(Build.SourcesDirectory)\tools\terms\PowerShell-Terms-Rules.mdb'