Skip to content

Commit 4c29865

Browse files
authored
Add support for reportSuppressedDiagnostics parameter in Run-AlPipeline (#4025)
This is related to microsoft/AL-Go#1911 and is a prerequisite for microsoft/AL-Go#1978 I'm not sure if I should write the value of this parameter under the "Parameters" section, since not all compilation settings are. What do you think about that? I've confirmed that it works together with microsoft/AL-Go#1978. I'm also not sure if I need to add some tests for this parameter in this repo?
1 parent 129a709 commit 4c29865

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

AppHandling/Run-AlPipeline.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@
179179
Environment to use for the pipeline
180180
.Parameter escapeFromCops
181181
If One of the cops causes an error in an app, then show the error, recompile the app without cops and continue
182+
.Parameter reportSuppressedDiagnostics
183+
Report diagnostics that are suppressed by #pragma warning disable directives when compiling.
182184
.Parameter AppSourceCopMandatoryAffixes
183185
Only relevant for AppSource Apps when AppSourceCop is enabled. This needs to be an array (or a string with comma separated list) of affixes used in the app.
184186
.Parameter AppSourceCopSupportedCountries
@@ -379,6 +381,7 @@ Param(
379381
[string[]] $preProcessorSymbols = @(),
380382
[switch] $generatecrossreferences,
381383
[switch] $escapeFromCops,
384+
[switch] $reportSuppressedDiagnostics,
382385
[Hashtable] $bcAuthContext,
383386
[string] $environment,
384387
$AppSourceCopMandatoryAffixes = @(),
@@ -1041,6 +1044,7 @@ Write-Host -NoNewLine -ForegroundColor Yellow "PackagesFolder "
10411044
Write-Host -NoNewLine -ForegroundColor Yellow "OutputFolder "; Write-Host $outputFolder
10421045
Write-Host -NoNewLine -ForegroundColor Yellow "BuildArtifactFolder "; Write-Host $buildArtifactFolder
10431046
Write-Host -NoNewLine -ForegroundColor Yellow "CreateRuntimePackages "; Write-Host $createRuntimePackages
1047+
Write-Host -NoNewLine -ForegroundColor Yellow "reportSuppressedDiagnostics "; Write-Host $reportSuppressedDiagnostics
10441048
Write-Host -NoNewLine -ForegroundColor Yellow "AppVersion "; Write-Host $appVersion
10451049
Write-Host -NoNewLine -ForegroundColor Yellow "AppBuild "; Write-Host $appBuild
10461050
Write-Host -NoNewLine -ForegroundColor Yellow "AppRevision "; Write-Host $appRevision
@@ -2121,6 +2125,7 @@ Write-Host -ForegroundColor Yellow @'
21212125
"updateDependencies" = $UpdateDependencies
21222126
"features" = $features
21232127
"generateErrorLog" = $generateErrorLog
2128+
"ReportSuppressedDiagnostics" = $reportSuppressedDiagnostics
21242129
}
21252130

21262131
if ($buildOutputFile) {

ReleaseNotes.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
6.1.9
2+
Add support for reportSuppressedDiagnostics in Run-AlPipeline
23

34
6.1.8
45
AL-Go issue 1920 Pagescript not working on own github runner

0 commit comments

Comments
 (0)