-
Notifications
You must be signed in to change notification settings - Fork 54
Closed
Labels
area-scriptanalyzerArea - ScriptAnalyzer moduleArea - ScriptAnalyzer moduleissue-doc-ideaIssue - request for new contentIssue - request for new content
Description
Prerequisites
- Write a descriptive title.
- Search the existing issues.
Summary of the new feature or changed behavior
A new (off-by-default) rule has been added to PSScriptAnalyzer called AvoidSemiColonsAsLineTerminators
. When enabled, it warns if a semi-colon is the last token on a line.
For example:
Wrong
Install-Module -Name PSScriptAnalyzer; $a = 1 + $b;
Install-Module -Name PSScriptAnalyzer;
$a = 1 + $b
Correct
Install-Module -Name PSScriptAnalyzer; $a = 1 + $b
Install-Module -Name PSScriptAnalyzer
$a = 1 + $b
List of articles that need to be updated
New Article:
Link to related PR in PowerShell/PowerShell repo
Link to related Issues in PowerShell/PowerShell repo
Metadata
Metadata
Assignees
Labels
area-scriptanalyzerArea - ScriptAnalyzer moduleArea - ScriptAnalyzer moduleissue-doc-ideaIssue - request for new contentIssue - request for new content