We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0413b19 commit 34a1ccfCopy full SHA for 34a1ccf
linter.py
@@ -70,6 +70,22 @@ def execute(self, cmd):
70
report = json.loads(output)
71
currnt = os.path.basename(self.filename)
72
73
+ """merge possible stderr with issues"""
74
+ if "Error" in report["Report"]:
75
+ for line in report["Report"]["Error"].splitlines():
76
+ if line.count(":") < 3:
77
+ continue
78
+ parts = line.split(":")
79
+ report["Issues"].append({
80
+ "FromLinter": "typecheck",
81
+ "Text": parts[3].strip(),
82
+ "Pos": {
83
+ "Filename": parts[0],
84
+ "Line": parts[1],
85
+ "Column": parts[2],
86
+ }
87
+ })
88
+
89
"""format issues into formal pattern"""
90
for issue in report["Issues"]:
91
name = issue["Pos"]["Filename"]
0 commit comments