-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
property 'sonar.cxx.coverage.reportPath' should be made using 'getStringArray' method. The SonarQube plugin using this property should be updated #1384
Comments
https://groups.google.com/forum/#!topic/sonarqube/3JCtRo8r_Yc With the move from Settings to Configuration, I'm trying to enforce some consistency between property definition, and property "use". On server side and scanner side, there are some special treatments for multi-valued properties (in particular to support comma inside a value). This will work best when:
So when moving to use org.sonar.scanner.config.Configuration, a warning will be emitted when:
For completeness @ Günter: SONAR-9478 , with related note in API changes documentation :
|
1. fixes SonarOpenCommunity#1384 Literaly all sensors derived from `CxxReportSensor` as well as `CxxSquidSensor` use use the method `CxxReportSensor::getReports()` in order to access the reporth paths. This method expects the `*.reportPath` property to be a multi-value one. So fix the property access * use `getStringArray()` method for parsing * mark corresponding properties as multi-value 2. fixes SonarOpenCommunity#1376 While working on (1) I've found out, that the property `UnitTestConfiguration.NUNIT_TEST_RESULTS_PROPERTY_KEY` is not public accessible. This contradicts to the SonarOpenCommunity#1376. On the other hand, if there should be no soupport for NUnit, either the property must be marked as deprecated or the NUnit support has to be removed completely. Please review.
1. fixes SonarOpenCommunity#1384 Literaly all sensors derived from `CxxReportSensor` as well as `CxxSquidSensor` use use the method `CxxReportSensor::getReports()` in order to access the reporth paths. This method expects the `*.reportPath` property to be a multi-value one. So fix the property access * use `getStringArray()` method for parsing * mark corresponding properties as multi-value 2. fixes SonarOpenCommunity#1376 While working on (1) I've found out, that the property `UnitTestConfiguration.NUNIT_TEST_RESULTS_PROPERTY_KEY` is not public accessible. This contradicts to the SonarOpenCommunity#1376. On the other hand, if there should be no soupport for NUnit, either the property must be marked as deprecated or the NUnit support has to be removed completely. Please review.
20:56:30 [sonar:sonar] Access to the multi-values/property set property 'sonar.cxx.coverage.reportPath' should be made using 'getStringArray' method. The SonarQube plugin using this property should be updated.
To be updated (see also #1381)
The text was updated successfully, but these errors were encountered: