forked from cflint/CFLint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cflint-result.schema.json
222 lines (222 loc) · 6.83 KB
/
cflint-result.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
{
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Result",
"description": "Represents the result of running CFLint",
"type": "object",
"properties": {
"version": {
"title": "Version",
"description": "The version of CFLint that products these results",
"type": "string"
},
"timestamp": {
"title": "Timestamp",
"description": "A timestamp representing the Unix epoch time when these results were generated",
"type": "number"
},
"issues": {
"title": "Issues",
"description": "A list of issues reported by CFLint",
"type": "array",
"items": {
"title": "Issue",
"description": "Represents each issue found",
"type": "object",
"properties": {
"severity": {
"title": "Severity",
"description": "The severity level of the issue",
"type": "string",
"enum": [
"FATAL",
"CRITICAL",
"ERROR",
"WARNING",
"CAUTION",
"INFO",
"COSMETIC"
]
},
"id": {
"title": "ID",
"description": "Unique identifier of the rule used to find the issue",
"type": "string"
},
"message": {
"title": "Message",
"description": "Same as ID",
"type": "string"
},
"category": {
"title": "Category",
"description": "Currently always contains CFLINT",
"type": "string",
"default": "CFLINT"
},
"abbrev": {
"title": "Abbreviation",
"description": "An abbreviation of the rule used to find the issue",
"type": "string"
},
"locations": {
"title": "Locations",
"description": "A list of locations that the issue occurs",
"type": "array",
"items": {
"title": "Location",
"description": "Properties of the individual issue reported",
"type": "object",
"properties": {
"file": {
"title": "File",
"description": "Full file path to the file in which the issue was found",
"type": "string"
},
"fileName": {
"title": "File name",
"description": "Just the file name in which the issue was found",
"type": "string"
},
"function": {
"title": "Function",
"description": "The function in which or for which the issue was found",
"type": "string"
},
"column": {
"title": "Column",
"description": "The column number of the starting position at which the issue was found",
"type": "number"
},
"line": {
"title": "Line",
"description": "The line number of the starting position at which the issue was found",
"type": "number"
},
"message": {
"title": "Message",
"description": "A message describing this specific issue",
"type": "string"
},
"variable": {
"title": "Variable",
"description": "The variable name for which the issue was found",
"type": "string"
},
"expression": {
"title": "Expression",
"description": "The expression in which the issue was found",
"type": "string"
}
},
"required": [
"file",
"fileName",
"function",
"column",
"line",
"message",
"variable",
"expression"
]
},
"minItems": 1
}
},
"required": [
"severity",
"id",
"message",
"category",
"abbrev",
"locations"
]
},
"default": []
},
"counts": {
"title": "Counts",
"description": "Provides counts for the results of running CFLint",
"type": "object",
"properties": {
"totalFiles": {
"title": "Total Files",
"description": "The total number of files read during this scan",
"type": "number",
"default": 0
},
"totalLines": {
"title": "Total Lines",
"description": "The total number of lines of code scanned",
"type": "number",
"default": 0
},
"countByCode": {
"title": "Count by Code",
"description": "List of issue codes with their respective issue counts",
"type": "array",
"items": {
"title": "Code Count",
"description": "The count of issues found for each distinct issue code",
"type": "object",
"properties": {
"code": {
"title": "Current Code",
"description": "The current issue code being counted",
"type": "string"
},
"count": {
"title": "Current Count",
"description": "The issue count for the current issue code",
"type": "number"
}
},
"required": [
"code",
"count"
]
},
"default": []
},
"countBySeverity": {
"title": "Count by Severity",
"description": "List of issue severities with their respective issue counts",
"type": "array",
"items": {
"title": "Severity Count",
"description": "The count of issues found for each distinct issue severity",
"type": "object",
"properties": {
"severity": {
"title": "Current Severity",
"description": "The current issue severity being counted",
"type": "string"
},
"count": {
"title": "Current Count",
"description": "The issue count for the current severity",
"type": "number"
}
},
"required": [
"severity",
"count"
]
},
"default": []
}
},
"required": [
"totalFiles",
"totalLines",
"countByCode",
"countBySeverity"
]
}
},
"required": [
"version",
"timestamp",
"issues",
"counts"
]
}