Skip to content

Commit 2910120

Browse files
committed
fix sarifs
1 parent 95a3c55 commit 2910120

File tree

5 files changed

+10
-53
lines changed

5 files changed

+10
-53
lines changed

plugins/tools/codacy-enigma-cli/test/expected.sarif

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
{
66
"tool": {
77
"driver": {
8-
"name": "codacy-enigma-cli"
8+
"name": "codacy-enigma-cli",
9+
"rules": null
910
}
1011
},
1112
"results": [

plugins/tools/eslint/test/expected.sarif

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"driver": {
4545
"informationUri": "https://eslint.org",
4646
"name": "ESLint",
47-
"rules": [],
47+
"rules": null,
4848
"version": "8.57.0"
4949
}
5050
}

plugins/tools/lizard/test/expected.sarif

Lines changed: 1 addition & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -8,52 +8,7 @@
88
"name": "Lizard",
99
"version": "1.17.10",
1010
"informationUri": "https://github.com/terryyin/lizard",
11-
"rules": [
12-
{
13-
"id": "Lizard_ccn-medium",
14-
"shortDescription": {
15-
"text": "Check the Cyclomatic Complexity value of a function or logic block. If the threshold is not met, raise a Medium issue. The default threshold is 8."
16-
},
17-
"properties": {
18-
"tags": [
19-
"warning"
20-
]
21-
}
22-
},
23-
{
24-
"id": "Lizard_file-nloc-medium",
25-
"shortDescription": {
26-
"text": "Check the number of lines of code (without comments) in a file. If the threshold is not met, raise a Medium issue. The default threshold is 500."
27-
},
28-
"properties": {
29-
"tags": [
30-
"warning"
31-
]
32-
}
33-
},
34-
{
35-
"id": "Lizard_nloc-medium",
36-
"shortDescription": {
37-
"text": "Check the number of lines of code (without comments) in a function. If the threshold is not met, raise a Medium issue. The default threshold is 50."
38-
},
39-
"properties": {
40-
"tags": [
41-
"warning"
42-
]
43-
}
44-
},
45-
{
46-
"id": "Lizard_parameter-count-medium",
47-
"shortDescription": {
48-
"text": "Check the number of parameters sent to a function. If the threshold is not met, raise a Medium issue. The default threshold is 8."
49-
},
50-
"properties": {
51-
"tags": [
52-
"warning"
53-
]
54-
}
55-
}
56-
]
11+
"rules": null
5712
}
5813
},
5914
"results": [

plugins/tools/pmd/test/expected.sarif

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
{
1717
"physicalLocation": {
1818
"artifactLocation": {
19-
"uri": "./Test.java"
19+
"uri": "/plugins/tools/pmd/test/src/Test.java"
2020
},
2121
"region": {
2222
"endColumn": 30,
@@ -38,7 +38,7 @@
3838
{
3939
"physicalLocation": {
4040
"artifactLocation": {
41-
"uri": "./Test.java"
41+
"uri": "/plugins/tools/pmd/test/src/Test.java"
4242
},
4343
"region": {
4444
"endColumn": 16,

plugins/tools/semgrep/test/expected.sarif

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"version": "2.1.0",
32
"$schema": "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json",
43
"runs": [
54
{
@@ -188,9 +187,11 @@
188187
"tool": {
189188
"driver": {
190189
"name": "Semgrep OSS",
190+
"rules": null,
191191
"semanticVersion": "1.78.0"
192192
}
193193
}
194194
}
195-
]
196-
}
195+
],
196+
"version": "2.1.0"
197+
}

0 commit comments

Comments
 (0)