您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
87 行
2.7 KiB
87 行
2.7 KiB
{
|
|
"$schema": "http://json.schemastore.org/sarif-1.0.0",
|
|
"version": "1.0.0",
|
|
"runs": [
|
|
{
|
|
"tool": {
|
|
"name": "Microsoft (R) Visual C# Compiler",
|
|
"version": "4.0.0.0",
|
|
"fileVersion": "4.0.1-1.22116.5 (ff289c43)",
|
|
"semanticVersion": "4.0.0",
|
|
"language": "en-US"
|
|
},
|
|
"results": [
|
|
{
|
|
"ruleId": "CS2008",
|
|
"level": "warning",
|
|
"message": "No source files specified.",
|
|
"properties": {
|
|
"warningLevel": 2
|
|
}
|
|
},
|
|
{
|
|
"ruleId": "CS8021",
|
|
"level": "warning",
|
|
"message": "No value for RuntimeMetadataVersion found. No assembly containing System.Object was found nor was a value for RuntimeMetadataVersion specified through options.",
|
|
"properties": {
|
|
"warningLevel": 2
|
|
}
|
|
},
|
|
{
|
|
"ruleId": "S3904",
|
|
"level": "warning",
|
|
"message": "Provide an 'AssemblyVersion' attribute for assembly 'Assembly-CSharp'.",
|
|
"properties": {
|
|
"warningLevel": 1
|
|
}
|
|
}
|
|
],
|
|
"rules": {
|
|
"CS2008": {
|
|
"id": "CS2008",
|
|
"shortDescription": "No source files specified",
|
|
"defaultLevel": "warning",
|
|
"helpUri": "https://msdn.microsoft.com/query/roslyn.query?appId=roslyn&k=k(CS2008)",
|
|
"properties": {
|
|
"category": "Compiler",
|
|
"isEnabledByDefault": true,
|
|
"tags": [
|
|
"Compiler",
|
|
"Telemetry"
|
|
]
|
|
}
|
|
},
|
|
"CS8021": {
|
|
"id": "CS8021",
|
|
"shortDescription": "No value for RuntimeMetadataVersion found",
|
|
"defaultLevel": "warning",
|
|
"helpUri": "https://msdn.microsoft.com/query/roslyn.query?appId=roslyn&k=k(CS8021)",
|
|
"properties": {
|
|
"category": "Compiler",
|
|
"isEnabledByDefault": true,
|
|
"tags": [
|
|
"Compiler",
|
|
"Telemetry"
|
|
]
|
|
}
|
|
},
|
|
"S3904": {
|
|
"id": "S3904",
|
|
"shortDescription": "Assemblies should have version information",
|
|
"fullDescription": "If no AssemblyVersionAttribute is provided, the same default version will be used for every build. Since the version number is used by The .NET Framework to uniquely identify an assembly this can lead to broken dependencies.",
|
|
"defaultLevel": "warning",
|
|
"helpUri": "https://rules.sonarsource.com/csharp/RSPEC-3904",
|
|
"properties": {
|
|
"category": "Critical Code Smell",
|
|
"isEnabledByDefault": true,
|
|
"tags": [
|
|
"C#",
|
|
"SonarWay",
|
|
"MainSourceScope"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|