You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/github/finding-security-vulnerabilities-and-errors-in-your-code/sarif-support-for-code-scanning.md
+55-53Lines changed: 55 additions & 53 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,38 +125,47 @@ This SARIF output file has example values to show the minimum required propertie
"text": "Result text. This result does not have a rule associated."
147
+
},
148
+
"locations": [
149
+
{
150
+
"physicalLocation": {
151
+
"artifactLocation": {
152
+
"uri": "fileURI"
153
+
},
154
+
"region": {
155
+
"startLine": 2,
156
+
"startColumn": 7,
157
+
"endColumn": 10
158
+
}
159
+
}
160
+
}
161
+
],
162
+
"partialFingerprints": {
163
+
"primaryLocationLineHash": "39fa2ee980eb94b0:1"
164
+
}
165
+
}
166
+
]
167
+
}
168
+
]
160
169
}
161
170
```
162
171
@@ -176,7 +185,7 @@ This SARIF output file has example values to show all supported SARIF properties
176
185
"semanticVersion": "2.0.0",
177
186
"rules": [
178
187
{
179
-
"id": "js/unused-local-variable",
188
+
"id": "3f292041e51d22005ce48f39df3585d44ce1b0ad",
180
189
"name": "js/unused-local-variable",
181
190
"shortDescription": {
182
191
"text": "Unused variable, import, function or class"
@@ -195,15 +204,14 @@ This SARIF output file has example values to show all supported SARIF properties
195
204
}
196
205
},
197
206
{
198
-
"id": "js/inconsistent-use-of-new",
207
+
"id": "d5b664aefd5ca4b21b52fdc1d744d7d6ab6886d0",
199
208
"name": "js/inconsistent-use-of-new",
200
209
"shortDescription": {
201
210
"text": "Inconsistent use of 'new'"
202
211
},
203
212
"fullDescription": {
204
213
"text": "If a function is intended to be a constructor, it should always be invoked with 'new'. Otherwise, it should always be invoked as a normal function, that is, without 'new'."
205
214
},
206
-
"defaultConfiguration": null,
207
215
"properties": {
208
216
"tags": [
209
217
"reliability",
@@ -212,13 +220,16 @@ This SARIF output file has example values to show all supported SARIF properties
"text": "Function resolvingPromise is sometimes invoked as a constructor (for example [here](1)), and sometimes as a normal function (for example [here](2))."
@@ -254,8 +264,8 @@ This SARIF output file has example values to show all supported SARIF properties
0 commit comments