Skip to content

Commit 0fcf82b

Browse files
committed
Add suppression message for ScriptAnalyzer rule in New-SqlDscFileGroup function
1 parent 71d9956 commit 0fcf82b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/Public/New-SqlDscFileGroup.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
#>
8181
function New-SqlDscFileGroup
8282
{
83+
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('UseSyntacticallyCorrectExamples', '', Justification = 'Because the rule does not yet support parsing the code when a parameter type is not available. The ScriptAnalyzer rule UseSyntacticallyCorrectExamples will always error in the editor due to https://github.com/indented-automation/Indented.ScriptAnalyzerRules/issues/8.')]
8384
[CmdletBinding(DefaultParameterSetName = 'AsSpec', SupportsShouldProcess = $true, ConfirmImpact = 'High')]
8485
[OutputType([Microsoft.SqlServer.Management.Smo.FileGroup])]
8586
[OutputType([DatabaseFileGroupSpec])]

0 commit comments

Comments
 (0)