gretard / sonar-ps-plugin

Powershell language plugin for SonarQube
GNU Lesser General Public License v3.0
37 stars 7 forks source link

Getting the plugin to work #31

Closed huntantr closed 9 months ago

huntantr commented 1 year ago

Have this installed in SonarQube , plus have the PSScriptAnalyzer on the build machine. I know this works as I run it manually. How do I get SonarQube to do the scanning and create issues?

henry-1 commented 1 year ago

I wrote a short description how I integrated this plugin in SonarQube https://github.com/henry-1/ScriptAnalyzer_CustomRules/blob/main/readme.md

Meanwhile I managed to integrate the plugin, as well as my custom modules and I am also able to see code coverage. For this all I modified regenerateRulesDefinition.ps1 and scriptAnalyzer.ps1 slightly and wrote and script to translate pester output into the format described in the 'Generic test data' section on the sonarqube web site.

Thanks @hunantr for all your work

gretard commented 11 months ago

Hi @huntantr ,

Did you manage to get everything working?