diff --git a/functions/New-AzStateDiscovery.ps1 b/functions/New-AzStateDiscovery.ps1 index 88eb20b..dd2945f 100644 --- a/functions/New-AzStateDiscovery.ps1 +++ b/functions/New-AzStateDiscovery.ps1 @@ -3,6 +3,14 @@ ################################# function Get-AzStateChildrenByType { + ############################################### + # Configure PSScriptAnalyzer rule suppression # + ############################################### + + # The following SuppressMessageAttribute entries are used to surpress + # PSScriptAnalyzer tests against known exceptions as per: + # https://github.com/powershell/psscriptanalyzer#suppressing-rules + [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSReviewUnusedParameter', 'ExcludePathIds', Justification = 'False positive: used in process block of function')] [CmdletBinding()] [OutputType([AzState[]])]