sonar-ps-plugin icon indicating copy to clipboard operation
sonar-ps-plugin copied to clipboard

SonarQube 10.6 emits a warning about using getStringArray to read file suffixes

Open testworksau opened this issue 6 months ago • 0 comments

We are seeing this message in our scans since upgrading to SonarQube 10.6:

WARN: Property 'sonar.ps.file.suffixes' is not declared as multi-values/property set 
but was read using 'getStringArray' method. The SonarQube plugin declaring this 
property should be updated.

It looks like this is the line that triggers the warning:

https://github.com/gretard/sonar-ps-plugin/blob/446e7153465e455f1c578c333f4e1ab616116b22/sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/PowershellLanguage.java#L22

We are not sure if 10.6 introduced the problem; it could just be a coincidence that we noticed it after our upgrade.

This PR should fix the problem: https://github.com/gretard/sonar-ps-plugin/pull/33

testworksau avatar Aug 01 '24 23:08 testworksau