statical analysis shouldn't report the exact same error twice
This commit is contained in:
1 parent
7abdc375c2
commit
3f2e737702
2 files changed
+11
-1
No files matched your search
@@ -594,7 +594,7 @@ class Script(object):
|
||||
self._evaluator.eval_statement(stmt)
|
||||
|
||||
analysis = [a for a in self._evaluator.analysis if self.path == a.path]
|
||||
return sorted(analysis, key=lambda x: x.line)
|
||||
return sorted(set(analysis), key=lambda x: x.line)
|
||||
|
||||
|
||||
class Interpreter(Script):
|
||||
|
||||
Reference in new issue
Block a user