Skip to content

Commit fffc4c5

Browse files
committed
Disable 'AvoidWriteErrorStop' rule due to conflicts with 'Write-Error -ErrorAction Stop' usage; reference ongoing investigation in PR dsccommunity#2364
1 parent b441522 commit fffc4c5

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.vscode/analyzersettings.psd1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,13 @@
6666
'AvoidProcessWithoutPipeline'
6767
'AvoidSmartQuotes'
6868
'AvoidThrowOutsideOfTry'
69-
'AvoidWriteErrorStop'
69+
<#
70+
'AvoidWriteErrorStop' rule is disabled because it conflicts with
71+
the use of 'Write-Error -ErrorAction Stop' pattern used in the module.
72+
There are edge case issues with $PSCmdlet.ThrowTerminatingError that
73+
being investigated in Pull Request https://github.com/dsccommunity/SqlServerDsc/pull/2364.
74+
#>
75+
#'AvoidWriteErrorStop'
7076
'AvoidWriteOutput'
7177
'UseSyntacticallyCorrectExamples'
7278
)

0 commit comments

Comments
 (0)