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

Description

Lines should not end with a semicolon.
This rule is not enabled by default. The user needs to enable it through settings.

Examples

Problematic code

Correct code

Configuration

Parameters

Enable: bool (Default value is $false)

Enable or disable the rule during ScriptAnalyzer invocation.

Source

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