We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 752a03e + 786cd67 commit 9c8b40cCopy full SHA for 9c8b40c
1 file changed
client/tool/util/collie.py
@@ -171,6 +171,8 @@ def get_issue(self, output):
171
if not output or not os.path.exists(output):
172
return
173
174
+ rules = self.params.get("rules", list())
175
+
176
f = open(output, "r", encoding="utf-8")
177
fieldnames = (
178
"checker",
@@ -187,6 +189,8 @@ def get_issue(self, output):
187
189
line = int(row["line"])
188
190
column = int(row["column"])
191
rule = row["checker"]
192
+ if rule not in rules:
193
+ continue
194
msg = row["description"]
195
yield {
196
"rule": rule,
0 commit comments