Closed TravisEz13 closed 9 years ago
Clone https://github.com/TravisEz13/PSScriptAnalyzerExamples.git open the repo in powershell Invoke-ScriptAnalyzer .\pipeExample.ps1
no errors
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.
We do not support pipeline in the current set of rules. We need a generic plan for all of the rules. moving 1506
Fix with https://github.com/PowerShell/PSScriptAnalyzer/pull/240
Repro
Clone https://github.com/TravisEz13/PSScriptAnalyzerExamples.git open the repo in powershell Invoke-ScriptAnalyzer .\pipeExample.ps1
Expected
no errors
Actual