We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3aae5e commit 30a3a34Copy full SHA for 30a3a34
1 file changed
gobexec/goblint/result.py
@@ -26,6 +26,15 @@ def __init__(self,
26
def template(self, env):
27
return env.get_template("racesummary.jinja")
28
29
+ @property
30
+ def kind(self):
31
+ if self.unsafe > 0:
32
+ return ResultKind.ERROR
33
+ elif self.vulnerable > 0:
34
+ return ResultKind.WARNING
35
+ else:
36
+ return ResultKind.SUCCESS
37
+
38
@staticmethod
39
async def extract(ec: ExecutionContext[Any], cp: CompletedSubprocess) -> 'RaceSummary':
40
stdout = cp.stdout.decode("utf-8")
0 commit comments