Skip to main content
powershell/PSUseCompatibleSyntax is a PSScriptAnalyzer diagnostic emitted by tally for PowerShell snippets embedded in Dockerfiles.

Description

This rule identifies syntax elements that are incompatible with targeted PowerShell versions. It cannot identify syntax elements incompatible with PowerShell 3 or 4 when run from those PowerShell versions because they aren’t able to parse the incompatible syntaxes.

Source

This rule documentation is adapted from Microsoft’s PSScriptAnalyzer documentation for UseCompatibleSyntax, licensed under CC BY 4.0.