PowerShell / PSScriptAnalyzer

Download ScriptAnalyzer from PowerShellGallery
https://www.powershellgallery.com/packages/PSScriptAnalyzer/
MIT License
1.87k stars 379 forks source link

While Performing Powershell linting using Pre-commit through hook 'PSScriptanalyzer' I am getting below error: Invoke-ScriptAnalyzer : A positional parameter cannot be found that accepts argument #2016

Closed Shubhij12 closed 3 months ago

Shubhij12 commented 4 months ago

I have Installed PSScriptAnalyzer module in my local and while plugin it with precommit i have given below config file: While i am passing multiple ps1 files, getting below error. For Single file its executing correctly.

Please find following Config file

Getting below Error : A positional parameter cannot be found that accepts argument in ___.ps1

SydneyhSmith commented 3 months ago

Thanks @Shubhij12 this doesn't look like something we support, the issue might be coming from the lack of argument following -Path... you might want to get support from the project where this is coming from... thanks!