SQ Plugin: Should align logging for not indexed files #8503
Labels
Area: SQ Plugin
Java plugin related issues.
Sprint: Hardening
Fix FPs/FNs/improvements
Type: UX
Improve any kind of user experience
Milestone
Tasks for this ticket
Verify sonar.sources in .sonarqube\\out\\sonar-project.properties.
Context
Related to this forum topic.
In the
ScannerFileService
we currently log:When the file is not indexed (path mismatch in coverage report vs what the S4NET knows).
There's quite some indirect logic that we've added when we added support for deterministic source paths in code coverage reports. Because for VS Coverage reports, when a file is not indexed, the information is not logged in the VisualStudioCoverageXmlReportParser:
sonar-dotnet/sonar-dotnet-shared-library/src/main/java/org/sonar/plugins/dotnet/tests/VisualStudioCoverageXmlReportParser.java
Line 125 in cfee18a
but in the ScannerFileService the logging message does not mention indexed files, only "deterministic source paths".
sonar-dotnet/sonar-dotnet-shared-library/src/main/java/org/sonar/plugins/dotnet/tests/ScannerFileService.java
Line 76 in cfee18a
Compare this with the other report parsers, which log not indexed files in a more direct manner:
sonar-dotnet/sonar-dotnet-shared-library/src/main/java/org/sonar/plugins/dotnet/tests/OpenCoverReportParser.java
Line 131 in cfee18a
sonar-dotnet/sonar-dotnet-shared-library/src/main/java/org/sonar/plugins/dotnet/tests/DotCoverReportParser.java
Line 74 in cfee18a
sonar-dotnet/sonar-dotnet-shared-library/src/main/java/org/sonar/plugins/dotnet/tests/NCover3ReportParser.java
Line 132 in cfee18a
The text was updated successfully, but these errors were encountered: