Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 790 Bytes

AvoidLongLines.md

File metadata and controls

38 lines (27 loc) · 790 Bytes
description ms.custom ms.date ms.topic title
Avoid long lines
PSSA v1.21.0
06/28/2023
reference
AvoidLongLines

AvoidLongLines

Severity Level: Warning

Description

Lines should be no longer than a configured number of characters (default: 120), including leading whitespace (indentation).

Note: This rule is not enabled by default. The user needs to enable it through settings.

Configuration

Rules = @{
    PSAvoidLongLines  = @{
        Enable     = $true
        MaximumLineLength = 120
    }
}

Parameters

Enable: bool (Default value is $false)

Enable or disable the rule during ScriptAnalyzer invocation.

MaximumLineLength: int (Default value is 120)

Optional parameter to override the default maximum line length.