Hello,
I am using SonarQube to import an external report generated by a PHP component for analyzing issues in the web/modules
directory. I have configured the property sonar.externalIssuesReportPaths=report.json
to import the external report, and I also want to exclude the web/modules
directory from SonarQube’s analysis using sonar.exclusions=web/modules
.
However, when I launch the sonar-scanner
, the issues from the external report are ignored because the web/modules
directory is excluded from the scan.
My Request:
How can I configure SonarQube to:
- Import external report issues for the
web/modules
directory. - Skip SonarQube’s native analysis for the web/modules directories
I have tried several methods, but none have worked as expected.
Example of a Report Line:
json
Copier le code
{
"issues": [
{
"engineId": "Upgrade",
"ruleId": "LibraryDeprecationAnalyzer",
"severity": "INFO",
"type": "BUG",
"primaryLocation": {
"message": "tour - The 'tour' extension is not installed. Cannot check deprecated library use.",
"filePath": "web/modules/tour/test.php",
"textRange": {
"startLine": 1
}
}
}
]
}
Could you please guide me on how to achieve this configuration?
Thank you!