Documentation Index
Fetch the complete documentation index at: https://tally.wharflab.com/llms.txt
Use this file to discover all available pages before exploring further.
powershell/PSAvoidSemicolonsAsLineTerminators is a PSScriptAnalyzer diagnostic emitted by tally for PowerShell snippets embedded in Dockerfiles.
| Property | Value |
|---|
| Severity | Warning |
| Category | PSScriptAnalyzer |
| Auto-fix | No |
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
Install-Module -Name PSScriptAnalyzer; $a = 1 + $b;
Install-Module -Name PSScriptAnalyzer;
$a = 1 + $b
Correct code
Install-Module -Name PSScriptAnalyzer; $a = 1 + $b
Install-Module -Name PSScriptAnalyzer
$a = 1 + $b
Configuration
Rules = @{
PSAvoidSemicolonsAsLineTerminators = @{
Enable = $true
}
}
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.