Skip to content

Avoid Using Semicolons (;). #159

Description

@iRon7

The PowerShell practice and style guide has a rule for: Avoid Using Semicolons (;) as Line Terminators.
I wonder whether there is a general readability recommendation for avoid Using Semicolons (;), period (at all), meaning:
Don't put multiple statements in a single line but instead spreading them over multiple lines, thus:
Rather than:

if ($Condition) {
    Write-Host 'Exiting...'; return
}

do:

if ($Condition) {
    Write-Host 'Exiting...'
    return
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Help WantedGreat spot for someone to pitch in

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions