AvoidLongLines
Severity Level: Warning
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.
Rules = @{
PSAvoidLongLines = @{
Enable = $true
MaximumLineLength = 120
}
}
Enable or disable the rule during ScriptAnalyzer invocation.
Optional parameter to override the default maximum line length.