Skip to content

Document new PSSA Rule "AvoidSemiColonsAsLineTerminators" #70

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 tasks done
michaeltlombardi opened this issue Jun 16, 2022 · 0 comments · Fixed by #86
Closed
2 tasks done

Document new PSSA Rule "AvoidSemiColonsAsLineTerminators" #70

michaeltlombardi opened this issue Jun 16, 2022 · 0 comments · Fixed by #86
Assignees
Labels
area-scriptanalyzer Area - ScriptAnalyzer module issue-doc-idea Issue - request for new content

Comments

@michaeltlombardi
Copy link
Contributor

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

@michaeltlombardi michaeltlombardi added area-scriptanalyzer Area - ScriptAnalyzer module issue-doc-idea Issue - request for new content hold-for-pr Waiting - for PR merge labels Jun 16, 2022
@michaeltlombardi michaeltlombardi removed the hold-for-pr Waiting - for PR merge label Jul 25, 2022
@michaeltlombardi michaeltlombardi self-assigned this Jul 25, 2022
michaeltlombardi added a commit to michaeltlombardi/PowerShell-Docs-Modules that referenced this issue Jul 25, 2022
This change adds the new `AvoidSemiColonsAsLineTerminators` rule
documentation to PSScriptAnalyzer.

- Resolves MicrosoftDocs#70
michaeltlombardi added a commit to michaeltlombardi/PowerShell-Docs-Modules that referenced this issue Jul 25, 2022
This change adds the new `AvoidSemiColonsAsLineTerminators` rule
documentation to PSScriptAnalyzer.

- Resolves MicrosoftDocs#70
- Fixes AB#4588
michaeltlombardi added a commit to michaeltlombardi/PowerShell-Docs-Modules that referenced this issue Jul 25, 2022
This change adds the new `AvoidSemiColonsAsLineTerminators` rule
documentation to PSScriptAnalyzer.

- Resolves MicrosoftDocs#70
- Fixes AB#4588
michaeltlombardi added a commit to michaeltlombardi/PowerShell-Docs-Modules that referenced this issue Jul 25, 2022
This change adds the new `AvoidSemiColonsAsLineTerminators` rule
documentation to PSScriptAnalyzer.

- Resolves MicrosoftDocs#70
- Fixes AB#4588
sdwheeler pushed a commit that referenced this issue Jul 25, 2022
This change adds the new `AvoidSemiColonsAsLineTerminators` rule
documentation to PSScriptAnalyzer.

- Resolves #70
- Fixes AB#4588
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-scriptanalyzer Area - ScriptAnalyzer module issue-doc-idea Issue - request for new content
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant