★ wanayoo — archive 1999 https://github.com/PowerShell/PSScriptAnalyzer/blob/master/RuleDocumentation/UseCompatibleSyntax.mdNouvelle recherche | Portail wanayoo
Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
25 lines (20 sloc) 591 Bytes

UseCompatibleSyntax

Severity Level: Warning

Description

This rule identifies syntax elements that are incompatible with targeted PowerShell versions.

It cannot identify syntax elements incompatible with PowerShell 3/4 from PowerShell 3/4 due to those PowerShell versions not being able to parse the incompatible syntaxes.

@{
    Rules = @{
        PSUseCompatibleSyntax = @{
            Enable = $true
            TargetVersions = @(
                "6.0",
                "5.1",
                "4.0"
            )
        }
    }
}
You can’t perform that action at this time.