Closed kirkpabk closed 7 months ago
Hi, Thanks for raising this, but I think it is already supported. Please check:
pwsh -Command "Install-Module -Name PSScriptAnalyzer -Force"
pwsh -Command "Invoke-ScriptAnalyzer -ScriptDefinition '"b" = "b"; function eliminate-file () { }'"
whereis pwsh
):
sonar.ps.executable="/usr/bin/pwsh"
Now plugin should be able to work on Linux and you should see results on the SonarQube server :) Please let me know if that helped.
Thanks @gretard! We will give it a shot. Our environment is closed, so we'd have the manually install the modules. The only binaries we saw were the packaged ones with the .dll assemblies. So--we'll take another look. Thanks again!
Since PowerShell is largely cross-platform, are there any plans to help drive PS Script Analyzer for Linux?
Understand this is not core to this project--but additional pushing, might help.