sonar_get_duplication_report
Retrieves the duplication report for a pull request, identifying which files have duplicated code and their duplication percentage.
Instructions
Get the duplicated lines report for a pull request — which files have duplicated code and what percentage. Use this when the user mentions 'duplication' or 'duplicated lines'.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pullRequest": "<pullRequest>"
},
"name": "sonar_get_duplication_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pullRequest | Yes | Pull request number, e.g. '257' |