SonarQube version:- 8.5 developer edition
We are trying to display warnings in sonarqube server using Generic Issues Import Format
Below is our json format that we have formed:-
{
"issues": [
{
"engineId": "Compiler Warning",
"ruleId": "Warning",
"severity": "MAJOR",
"type": "CODE_SMELL",
"primaryLocation": {
"message": " Unnecessary safe call on a non-null receiver of type CMAnimatedImage?",
"filePath": "path to the file",
"textRange": {
"startLine": "20",
"endLine": "20"
}
}
}
]
}
We are settings the below configurations in the sonarqube configurations file:-
property “sonar.issuesReport.json.enable”, “true”
property “sonar.externalIssuesReportPaths”, file("${rootProject.projectDir}/SonarQubeIssueData.json")
However, even after following the above steps and the steps mentioned in https://docs.sonarqube.org/latest/analysis/generic-issue/, the issues mentioned in the json are not reflecting in our sonarqube server.
Any help in this regard would be appreciated. Thank you.