Skip to content

Commit

Permalink
Propage enableCodeAnalyzersOnTestApps setting to Run-AlPipeline (micr…
Browse files Browse the repository at this point in the history
…osoft#871)

Pending on microsoft/navcontainerhelper#3292 and
BcContainerHelper preview release.
  • Loading branch information
mazhelez authored Jan 10, 2024
1 parent 7b6ca6c commit e55c2d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Actions/AL-Go-Helper.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,7 @@ function ReadSettings {
"installPerformanceToolkit" = $false
"enableCodeCop" = $false
"enableUICop" = $false
"enableCodeAnalyzersOnTestApps" = $false
"customCodeCops" = @()
"failOn" = "error"
"treatTestFailuresAsWarnings" = $false
Expand Down Expand Up @@ -1880,6 +1881,7 @@ function CreateDevEnv {
"enableAppSourceCop",
"enablePerTenantExtensionCop",
"enableUICop",
"enableCodeAnalyzersOnTestApps",
"useCompilerFolder" | ForEach-Object {
if ($settings."$_") { $runAlPipelineParams += @{ "$_" = $true } }
}
Expand Down
1 change: 1 addition & 0 deletions Actions/RunPipeline/RunPipeline.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ try {
"enableAppSourceCop",
"enablePerTenantExtensionCop",
"enableUICop",
"enableCodeAnalyzersOnTestApps",
"useCompilerFolder" | ForEach-Object {
if ($settings."$_") { $runAlPipelineParams += @{ "$_" = $true } }
}
Expand Down
1 change: 1 addition & 0 deletions Scenarios/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ The repository settings are only read from the repository settings file (.github
| <a id="enableCodeCop"></a>enableCodeCop | If enableCodeCop is set to true, the CI/CD workflow will enable the CodeCop analyzer when building. | false |
| <a id="enableUICop"></a>enableUICop | If enableUICop is set to true, the CI/CD workflow will enable the UICop analyzer when building. | false |
| <a id="customCodeCops"></a>customCodeCops | CustomCodeCops is an array of paths or URLs to custom Code Cop DLLs you want to enable when building. | [ ] |
| <a id="enableCodeAnalyzersOnTestApps"></a>enableCodeAnalyzersOnTestApps | If enableCodeAnalyzersOnTestApps is set to true, the code analyzers will be enabled when building test apps as well. | false |
| <a id="failOn"></a>failOn | Specifies what the pipeline will fail on. Allowed values are none, warning and error | error |
| <a id="rulesetFile"></a>rulesetFile | Filename of the custom ruleset file | |
| <a id="enableExternalRulesets"></a>enableExternalRulesets | If enableExternalRulesets is set to true, then you can have external rule references in the ruleset | false |
Expand Down

0 comments on commit e55c2d0

Please sign in to comment.