| Description | Get a list of violations |
URL | /api/violations |
| Method | GET |
Security | Requires User role on project |
Examples
Get all the versions from project Sonar (key = org.codehaus.sonar:sonar):
Get all the versions and alerts from project Sonar (key = org.codehaus.sonar:sonar between January 1st, 2012 and August 31st, 2012):
Get global events from October 8th, 2012:
Parameters
Parameter | Description | Required | Default value |
|---|---|---|---|
resource | id or key of the resource | Yes |
|
depth | Used only when resource is set.
| No | 0 |
scopes | Comma-separated list of scopes:
| No |
|
qualifiers | Comma-separated list of qualifiers:
| No |
|
rules | Comma-separated list od rule keys or ids | No |
|
priorities | Comma-separated list of priorities | No |
|
limit | Maximum number of results | No | 5000 |
include_review | Include review data into response. | No | false |
output | Output format of review comments. Ignored if include_review is false. | No | PLAIN |
switched_off | If true, then return only switched-off violations (usually false-positives), | No | false |

