Skip to content

Fulfilling mandatory parameters using a pipe results in a warning #71

Closed
@TravisEz13

Description

@TravisEz13

Repro

Clone https://github.com/TravisEz13/PSScriptAnalyzerExamples.git
open the repo in powershell
Invoke-ScriptAnalyzer .\pipeExample.ps1

Expected

no errors

Actual

Rule Name                           Severity   File Name  Line  Message
---------                           --------   ---------  ----  -------
PSUseCmdletCorrectly                Warning    pipeExampl 2     Cmdlet 'write-verbose' may be used incorrectly. Please
                                               e.ps1            check that all mandatory parameters are supplied.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions