Skip to content

Measure ParamBlock

dscbot edited this page Oct 8, 2024 · 1 revision

Measure-ParamBlock

SYNOPSIS

Validates the param-block parentheses and new lines around parentheses.

SYNTAX

Measure-ParamBlock [-ParamBlockAst] <ParamBlockAst> [<CommonParameters>]

DESCRIPTION

Each param-block should have the opening parentheses on the same line if empty. If the param-block has values then the parentheses should be on a new line.

EXAMPLES

EXAMPLE 1

Measure-ParamBlock -ParamBlockAst $ScriptBlockAst

PARAMETERS

-ParamBlockAst

{{ Fill ParamBlockAst Description }}

Type: ParamBlockAst
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

[System.Management.Automation.Language.ParamBlockAst]

OUTPUTS

[Microsoft.Windows.Powershell.ScriptAnalyzer.Generic.DiagnosticRecord[]]

NOTES

None

RELATED LINKS