Skip to content

Commit 834f448

Browse files
committed
Modify expected ruling to sarif
1 parent 5fb0723 commit 834f448

2 files changed

Lines changed: 158 additions & 9 deletions

File tree

‎its/ruling/src/test/resources/expected/eclipse-jetty/java-S100.json‎

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
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:S100",
16+
"ruleIndex" : -1,
17+
"kind" : "fail",
18+
"level" : "warning",
19+
"message" : {
20+
"text" : "Rename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'."
21+
},
22+
"locations" : [ {
23+
"id" : -1,
24+
"physicalLocation" : {
25+
"artifactLocation" : {
26+
"uri" : "eclipse-jetty:jetty-util/src/main/java/org/eclipse/jetty/util/security/UnixCrypt.java",
27+
"index" : -1
28+
},
29+
"region" : {
30+
"startLine" : 340,
31+
"startColumn" : 24,
32+
"endLine" : 340,
33+
"endColumn" : 34,
34+
"charOffset" : 11413,
35+
"charLength" : 10,
36+
"byteOffset" : 11413,
37+
"byteLength" : 10
38+
}
39+
}
40+
} ],
41+
"rank" : -1.0
42+
}, {
43+
"ruleId" : "java:S100",
44+
"ruleIndex" : -1,
45+
"kind" : "fail",
46+
"level" : "warning",
47+
"message" : {
48+
"text" : "Rename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'."
49+
},
50+
"locations" : [ {
51+
"id" : -1,
52+
"physicalLocation" : {
53+
"artifactLocation" : {
54+
"uri" : "eclipse-jetty:jetty-util/src/main/java/org/eclipse/jetty/util/security/UnixCrypt.java",
55+
"index" : -1
56+
},
57+
"region" : {
58+
"startLine" : 349,
59+
"startColumn" : 25,
60+
"endLine" : 349,
61+
"endColumn" : 35,
62+
"charOffset" : 11718,
63+
"charLength" : 10,
64+
"byteOffset" : 11718,
65+
"byteLength" : 10
66+
}
67+
}
68+
} ],
69+
"rank" : -1.0
70+
}, {
71+
"ruleId" : "java:S100",
72+
"ruleIndex" : -1,
73+
"kind" : "fail",
74+
"level" : "warning",
75+
"message" : {
76+
"text" : "Rename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'."
77+
},
78+
"locations" : [ {
79+
"id" : -1,
80+
"physicalLocation" : {
81+
"artifactLocation" : {
82+
"uri" : "eclipse-jetty:jetty-util/src/main/java/org/eclipse/jetty/util/security/UnixCrypt.java",
83+
"index" : -1
84+
},
85+
"region" : {
86+
"startLine" : 395,
87+
"startColumn" : 27,
88+
"endLine" : 395,
89+
"endColumn" : 37,
90+
"charOffset" : 12942,
91+
"charLength" : 10,
92+
"byteOffset" : 12942,
93+
"byteLength" : 10
94+
}
95+
}
96+
} ],
97+
"rank" : -1.0
98+
}, {
99+
"ruleId" : "java:S100",
100+
"ruleIndex" : -1,
101+
"kind" : "fail",
102+
"level" : "warning",
103+
"message" : {
104+
"text" : "Rename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'."
105+
},
106+
"locations" : [ {
107+
"id" : -1,
108+
"physicalLocation" : {
109+
"artifactLocation" : {
110+
"uri" : "eclipse-jetty:jetty-util/src/main/java/org/eclipse/jetty/util/security/UnixCrypt.java",
111+
"index" : -1
112+
},
113+
"region" : {
114+
"startLine" : 415,
115+
"startColumn" : 25,
116+
"endLine" : 415,
117+
"endColumn" : 35,
118+
"charOffset" : 13435,
119+
"charLength" : 10,
120+
"byteOffset" : 13435,
121+
"byteLength" : 10
122+
}
123+
}
124+
} ],
125+
"rank" : -1.0
126+
}, {
127+
"ruleId" : "java:S100",
128+
"ruleIndex" : -1,
129+
"kind" : "fail",
130+
"level" : "warning",
131+
"message" : {
132+
"text" : "Rename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'."
133+
},
134+
"locations" : [ {
135+
"id" : -1,
136+
"physicalLocation" : {
137+
"artifactLocation" : {
138+
"uri" : "eclipse-jetty:jetty-util/src/main/java/org/eclipse/jetty/util/security/UnixCrypt.java",
139+
"index" : -1
140+
},
141+
"region" : {
142+
"startLine" : 470,
143+
"startColumn" : 25,
144+
"endLine" : 470,
145+
"endColumn" : 34,
146+
"charOffset" : 15596,
147+
"charLength" : 9,
148+
"byteOffset" : 15596,
149+
"byteLength" : 9
150+
}
151+
}
152+
} ],
153+
"rank" : -1.0
154+
} ],
155+
"newlineSequences" : [ "\r\n", "\n" ],
156+
"columnKind" : "utf16CodeUnits"
157+
} ]
158+
}

0 commit comments

Comments
 (0)