Skip to content

Commit 9722427

Browse files
committed
Remove unrelated warnings from files different than buffer
1 parent 8765208 commit 9722427

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

linter.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ def execute(self, cmd):
7373
mark = name.rfind("/")
7474
mark = 0 if mark == -1 else mark+1
7575
issue["Pos"]["Shortname"] = name[mark:]
76+
"""skip issues from unrelated files"""
77+
if issue["Pos"]["Shortname"] != currnt:
78+
continue
7679
lines.append(
7780
"{}:{}:{}:{}:{}".format(
7881
issue["Pos"]["Shortname"],

0 commit comments

Comments
 (0)