Skip to content

Commit e55c2d0

Browse files
authored
Propage enableCodeAnalyzersOnTestApps setting to Run-AlPipeline (microsoft#871)
Pending on microsoft/navcontainerhelper#3292 and BcContainerHelper preview release.
1 parent 7b6ca6c commit e55c2d0

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

Actions/AL-Go-Helper.ps1

+2
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,7 @@ function ReadSettings {
593593
"installPerformanceToolkit" = $false
594594
"enableCodeCop" = $false
595595
"enableUICop" = $false
596+
"enableCodeAnalyzersOnTestApps" = $false
596597
"customCodeCops" = @()
597598
"failOn" = "error"
598599
"treatTestFailuresAsWarnings" = $false
@@ -1880,6 +1881,7 @@ function CreateDevEnv {
18801881
"enableAppSourceCop",
18811882
"enablePerTenantExtensionCop",
18821883
"enableUICop",
1884+
"enableCodeAnalyzersOnTestApps",
18831885
"useCompilerFolder" | ForEach-Object {
18841886
if ($settings."$_") { $runAlPipelineParams += @{ "$_" = $true } }
18851887
}

Actions/RunPipeline/RunPipeline.ps1

+1
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ try {
336336
"enableAppSourceCop",
337337
"enablePerTenantExtensionCop",
338338
"enableUICop",
339+
"enableCodeAnalyzersOnTestApps",
339340
"useCompilerFolder" | ForEach-Object {
340341
if ($settings."$_") { $runAlPipelineParams += @{ "$_" = $true } }
341342
}

Scenarios/settings.md

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ The repository settings are only read from the repository settings file (.github
9090
| <a id="enableCodeCop"></a>enableCodeCop | If enableCodeCop is set to true, the CI/CD workflow will enable the CodeCop analyzer when building. | false |
9191
| <a id="enableUICop"></a>enableUICop | If enableUICop is set to true, the CI/CD workflow will enable the UICop analyzer when building. | false |
9292
| <a id="customCodeCops"></a>customCodeCops | CustomCodeCops is an array of paths or URLs to custom Code Cop DLLs you want to enable when building. | [ ] |
93+
| <a id="enableCodeAnalyzersOnTestApps"></a>enableCodeAnalyzersOnTestApps | If enableCodeAnalyzersOnTestApps is set to true, the code analyzers will be enabled when building test apps as well. | false |
9394
| <a id="failOn"></a>failOn | Specifies what the pipeline will fail on. Allowed values are none, warning and error | error |
9495
| <a id="rulesetFile"></a>rulesetFile | Filename of the custom ruleset file | |
9596
| <a id="enableExternalRulesets"></a>enableExternalRulesets | If enableExternalRulesets is set to true, then you can have external rule references in the ruleset | false |

0 commit comments

Comments
 (0)