All checks were successful
continuous-integration/drone/push Build is passing
58 lines
1.8 KiB
JSON
58 lines
1.8 KiB
JSON
{
|
|
"$schema": "http://json.schemastore.org/sarif-1.0.0",
|
|
"version": "1.0.0",
|
|
"runs": [
|
|
{
|
|
"tool": {
|
|
"name": "Microsoft (R) Visual C# Compiler",
|
|
"version": "4.7.0.0",
|
|
"fileVersion": "4.7.0-3.23366.1 (dad7898a)",
|
|
"semanticVersion": "4.7.0",
|
|
"language": "en-GB"
|
|
},
|
|
"results": [
|
|
{
|
|
"ruleId": "S4487",
|
|
"level": "warning",
|
|
"message": "Remove this unread private field '_logger' or refactor the code to use its value.",
|
|
"locations": [
|
|
{
|
|
"resultFile": {
|
|
"uri": "file:///D:/Projects/Test/my-weather-api/Controllers/WeatherForecastController.cs",
|
|
"region": {
|
|
"startLine": 14,
|
|
"startColumn": 57,
|
|
"endLine": 14,
|
|
"endColumn": 64
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"properties": {
|
|
"warningLevel": 1
|
|
}
|
|
}
|
|
],
|
|
"rules": {
|
|
"S4487": {
|
|
"id": "S4487",
|
|
"shortDescription": "Unread \"private\" fields should be removed",
|
|
"fullDescription": "Private fields only used to store values without reading them later is a case of dead store. So changing the value of such field is useless and most probably indicates a serious error in the code.",
|
|
"defaultLevel": "note",
|
|
"helpUri": "https://rules.sonarsource.com/csharp/RSPEC-4487",
|
|
"properties": {
|
|
"category": "Critical Code Smell",
|
|
"isEnabledByDefault": true,
|
|
"tags": [
|
|
"C#",
|
|
"MainSourceScope",
|
|
"TestSourceScope",
|
|
"SonarWay",
|
|
"Unnecessary"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
} |