Skip to content

Commit 70c1a9d

Browse files
committed
[PLUTO-1411] Add pylint test
1 parent 1b2d92f commit 70c1a9d

File tree

1 file changed

+118
-0
lines changed

1 file changed

+118
-0
lines changed
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json",
3+
"version": "2.1.0",
4+
"runs": [
5+
{
6+
"tool": {
7+
"driver": {
8+
"name": "Pylint",
9+
"version": "3.3.6",
10+
"informationUri": "https://pylint.org",
11+
"rules": null
12+
}
13+
},
14+
"results": [
15+
{
16+
"ruleId": "missing-final-newline",
17+
"level": "note",
18+
"message": {
19+
"text": "Final newline missing"
20+
},
21+
"locations": [
22+
{
23+
"physicalLocation": {
24+
"artifactLocation": {
25+
"uri": "test_file.py"
26+
},
27+
"region": {
28+
"startLine": 33,
29+
"startColumn": 0
30+
}
31+
}
32+
}
33+
]
34+
},
35+
{
36+
"ruleId": "too-many-arguments",
37+
"level": "note",
38+
"message": {
39+
"text": "Too many arguments (11/5)"
40+
},
41+
"locations": [
42+
{
43+
"physicalLocation": {
44+
"artifactLocation": {
45+
"uri": "test_file.py"
46+
},
47+
"region": {
48+
"startLine": 16,
49+
"startColumn": 0
50+
}
51+
}
52+
}
53+
]
54+
},
55+
{
56+
"ruleId": "too-many-positional-arguments",
57+
"level": "note",
58+
"message": {
59+
"text": "Too many positional arguments (11/5)"
60+
},
61+
"locations": [
62+
{
63+
"physicalLocation": {
64+
"artifactLocation": {
65+
"uri": "test_file.py"
66+
},
67+
"region": {
68+
"startLine": 16,
69+
"startColumn": 0
70+
}
71+
}
72+
}
73+
]
74+
},
75+
{
76+
"ruleId": "unused-import",
77+
"level": "warning",
78+
"message": {
79+
"text": "Unused import os"
80+
},
81+
"locations": [
82+
{
83+
"physicalLocation": {
84+
"artifactLocation": {
85+
"uri": "test_file.py"
86+
},
87+
"region": {
88+
"startLine": 8,
89+
"startColumn": 0
90+
}
91+
}
92+
}
93+
]
94+
},
95+
{
96+
"ruleId": "unused-import",
97+
"level": "warning",
98+
"message": {
99+
"text": "Unused import sys"
100+
},
101+
"locations": [
102+
{
103+
"physicalLocation": {
104+
"artifactLocation": {
105+
"uri": "test_file.py"
106+
},
107+
"region": {
108+
"startLine": 9,
109+
"startColumn": 0
110+
}
111+
}
112+
}
113+
]
114+
}
115+
]
116+
}
117+
]
118+
}

0 commit comments

Comments
 (0)