Skip to content

Commit 735ce73

Browse files
Update ruling results
🤖 Generated with GitHub Actions
1 parent 61fcaad commit 735ce73

5 files changed

Lines changed: 522 additions & 109 deletions

File tree

Lines changed: 66 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,66 @@
1-
{
2-
"$schema" : "https://json.schemastore.org/sarif-2.1.0.json",
3-
"version" : "2.1.0",
4-
"runs" : [ {
5-
"tool" : {
6-
"driver" : {
7-
"name" : "LITS",
8-
"language" : "en-US",
9-
"contents" : [ "localizedData", "nonLocalizedData" ],
10-
"isComprehensive" : false
11-
}
12-
},
13-
"language" : "en-US",
14-
"results" : [ {
15-
"ruleId" : "java:S106",
16-
"ruleIndex" : -1,
17-
"kind" : "fail",
18-
"level" : "warning",
19-
"message" : {
20-
"text" : "Replace this use of System.out by a logger."
21-
},
22-
"locations" : [ {
23-
"id" : -1,
24-
"physicalLocation" : {
25-
"artifactLocation" : {
26-
"uri" : "commons-beanutils:src/main/java/org/apache/commons/beanutils2/BeanMap.java",
27-
"index" : -1
28-
},
29-
"region" : {
30-
"startLine" : 855,
31-
"startColumn" : 9,
32-
"endLine" : 855,
33-
"endColumn" : 19
34-
}
35-
}
36-
} ],
37-
"rank" : -1.0
38-
}
39-
],
40-
"newlineSequences" : [ "\r\n", "\n" ],
41-
"columnKind" : "utf16CodeUnits"
42-
} ]
43-
}
1+
{
2+
"$schema" : "https://json.schemastore.org/sarif-2.1.0.json",
3+
"version" : "2.1.0",
4+
"runs" : [ {
5+
"tool" : {
6+
"driver" : {
7+
"name" : "LITS",
8+
"language" : "en-US",
9+
"contents" : [ "localizedData", "nonLocalizedData" ],
10+
"isComprehensive" : false
11+
}
12+
},
13+
"language" : "en-US",
14+
"results" : [ {
15+
"ruleId" : "java:S106",
16+
"ruleIndex" : -1,
17+
"kind" : "fail",
18+
"level" : "warning",
19+
"message" : {
20+
"text" : "Replace this use of System.out by a logger."
21+
},
22+
"locations" : [ {
23+
"id" : -1,
24+
"physicalLocation" : {
25+
"artifactLocation" : {
26+
"uri" : "commons-beanutils:src/main/java/org/apache/commons/beanutils2/BeanMap.java",
27+
"index" : -1
28+
},
29+
"region" : {
30+
"startLine" : 855,
31+
"startColumn" : 9,
32+
"endLine" : 855,
33+
"endColumn" : 19
34+
}
35+
}
36+
} ],
37+
"rank" : -1.0
38+
}, {
39+
"ruleId" : "java:S106",
40+
"ruleIndex" : -1,
41+
"kind" : "fail",
42+
"level" : "warning",
43+
"message" : {
44+
"text" : "Replace this use of System.out by a logger."
45+
},
46+
"locations" : [ {
47+
"id" : -1,
48+
"physicalLocation" : {
49+
"artifactLocation" : {
50+
"uri" : "commons-beanutils:src/main/java/org/apache/commons/beanutils2/BeanMap.java",
51+
"index" : -1
52+
},
53+
"region" : {
54+
"startLine" : 866,
55+
"startColumn" : 9,
56+
"endLine" : 866,
57+
"endColumn" : 19
58+
}
59+
}
60+
} ],
61+
"rank" : -1.0
62+
} ],
63+
"newlineSequences" : [ "\r\n", "\n" ],
64+
"columnKind" : "utf16CodeUnits"
65+
} ]
66+
}

‎its/ruling/src/test/resources/expected/commons-beanutils/java-S9438.sarif‎

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -59,30 +59,6 @@
5959
}
6060
} ],
6161
"rank" : -1.0
62-
}, {
63-
"ruleId" : "java:S9438",
64-
"ruleIndex" : -1,
65-
"kind" : "fail",
66-
"level" : "warning",
67-
"message" : {
68-
"text" : "Make this private field \"final\", it is never reassigned."
69-
},
70-
"locations" : [ {
71-
"id" : -1,
72-
"physicalLocation" : {
73-
"artifactLocation" : {
74-
"uri" : "commons-beanutils:src/main/java/org/apache/commons/beanutils2/BeanMap.java",
75-
"index" : -1
76-
},
77-
"region" : {
78-
"startLine" : 42,
79-
"startColumn" : 5,
80-
"endLine" : 42,
81-
"endColumn" : 7
82-
}
83-
}
84-
} ],
85-
"rank" : -1.0
8662
}, {
8763
"ruleId" : "java:S9438",
8864
"ruleIndex" : -1,
@@ -111,4 +87,4 @@
11187
"newlineSequences" : [ "\r\n", "\n" ],
11288
"columnKind" : "utf16CodeUnits"
11389
} ]
114-
}
90+
}

‎its/ruling/src/test/resources/expected/eclipse-jetty/java-S3626.sarif‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"kind" : "fail",
1818
"level" : "warning",
1919
"message" : {
20-
"text" : "Remove this redundant return."
20+
"text" : "Remove this redundant jump."
2121
},
2222
"locations" : [ {
2323
"id" : -1,
@@ -41,7 +41,7 @@
4141
"kind" : "fail",
4242
"level" : "warning",
4343
"message" : {
44-
"text" : "Remove this redundant continue."
44+
"text" : "Remove this redundant jump."
4545
},
4646
"locations" : [ {
4747
"id" : -1,
@@ -65,7 +65,7 @@
6565
"kind" : "fail",
6666
"level" : "warning",
6767
"message" : {
68-
"text" : "Remove this redundant return."
68+
"text" : "Remove this redundant jump."
6969
},
7070
"locations" : [ {
7171
"id" : -1,

0 commit comments

Comments
 (0)