1+ {
2+ "$schema" : " http://json.schemastore.org/sarif-1.0.0" ,
3+ "version" : " 1.0.0" ,
4+ "runs" : [
5+ {
6+ "tool" : {
7+ "name" : " Microsoft (R) Visual C# Compiler" ,
8+ "version" : " 4.11.0.0" ,
9+ "fileVersion" : " 4.11.0-3.24554.2 (bc1c3011)" ,
10+ "semanticVersion" : " 4.11.0" ,
11+ "language" : " en-US"
12+ },
13+ "results" : [
14+ {
15+ "ruleId" : " CA1050" ,
16+ "level" : " note" ,
17+ "message" : " Declare types in namespaces" ,
18+ "locations" : [
19+ {
20+ "resultFile" : {
21+ "uri" : " file:///D:/a/_work/1/s/tools/OpenApiInfoGenerator/OpenApiInfoGenerator/OriginalMetadata.cs" ,
22+ "region" : {
23+ "startLine" : 3 ,
24+ "startColumn" : 14 ,
25+ "endLine" : 3 ,
26+ "endColumn" : 30
27+ }
28+ }
29+ }
30+ ],
31+ "properties" : {
32+ "warningLevel" : 1
33+ }
34+ },
35+ {
36+ "ruleId" : " CA1869" ,
37+ "level" : " note" ,
38+ "message" : " Avoid creating a new 'JsonSerializerOptions' instance for every serialization operation. Cache and reuse instances instead." ,
39+ "locations" : [
40+ {
41+ "resultFile" : {
42+ "uri" : " file:///D:/a/_work/1/s/tools/OpenApiInfoGenerator/OpenApiInfoGenerator/Program.cs" ,
43+ "region" : {
44+ "startLine" : 123 ,
45+ "startColumn" : 27 ,
46+ "endLine" : 123 ,
47+ "endColumn" : 77
48+ }
49+ }
50+ }
51+ ],
52+ "properties" : {
53+ "warningLevel" : 1
54+ }
55+ },
56+ {
57+ "ruleId" : " CA1859" ,
58+ "level" : " note" ,
59+ "message" : " Change type of field 'openApiVersions' from 'System.Collections.Generic.IDictionary<string, System.Collections.Generic.IList<openapiinfo.Model>>' to 'System.Collections.Generic.Dictionary<string, System.Collections.Generic.IList<openapiinfo.Model>>' for improved performance" ,
60+ "locations" : [
61+ {
62+ "resultFile" : {
63+ "uri" : " file:///D:/a/_work/1/s/tools/OpenApiInfoGenerator/OpenApiInfoGenerator/Program.cs" ,
64+ "region" : {
65+ "startLine" : 13 ,
66+ "startColumn" : 54 ,
67+ "endLine" : 13 ,
68+ "endColumn" : 69
69+ }
70+ }
71+ }
72+ ],
73+ "properties" : {
74+ "warningLevel" : 1
75+ }
76+ }
77+ ],
78+ "rules" : {
79+ "CA1050" : {
80+ "id" : " CA1050" ,
81+ "shortDescription" : " Declare types in namespaces" ,
82+ "fullDescription" : " Types are declared in namespaces to prevent name collisions and as a way to organize related types in an object hierarchy." ,
83+ "defaultLevel" : " note" ,
84+ "helpUri" : " https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1050" ,
85+ "properties" : {
86+ "category" : " Design" ,
87+ "isEnabledByDefault" : true ,
88+ "tags" : [
89+ " PortedFromFxCop" ,
90+ " Telemetry" ,
91+ " EnabledRuleInAggressiveMode"
92+ ]
93+ }
94+ },
95+ "CA1859" : {
96+ "id" : " CA1859" ,
97+ "shortDescription" : " Use concrete types when possible for improved performance" ,
98+ "fullDescription" : " Using concrete types avoids virtual or interface call overhead and enables inlining." ,
99+ "defaultLevel" : " note" ,
100+ "helpUri" : " https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1859" ,
101+ "properties" : {
102+ "category" : " Performance" ,
103+ "isEnabledByDefault" : true ,
104+ "tags" : [
105+ " Telemetry" ,
106+ " EnabledRuleInAggressiveMode"
107+ ]
108+ }
109+ },
110+ "CA1869" : {
111+ "id" : " CA1869" ,
112+ "shortDescription" : " Cache and reuse 'JsonSerializerOptions' instances" ,
113+ "fullDescription" : " Avoid creating a new 'JsonSerializerOptions' instance for every serialization operation. Cache and reuse instances instead. Single use 'JsonSerializerOptions' instances can substantially degrade the performance of your application." ,
114+ "defaultLevel" : " note" ,
115+ "helpUri" : " https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1869" ,
116+ "properties" : {
117+ "category" : " Performance" ,
118+ "isEnabledByDefault" : true ,
119+ "tags" : [
120+ " Telemetry" ,
121+ " EnabledRuleInAggressiveMode"
122+ ]
123+ }
124+ }
125+ }
126+ }
127+ ]
128+ }
0 commit comments