We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3836003 commit 587c055Copy full SHA for 587c055
1 file changed
codesectools/sasts/tools/Cppcheck/parser.py
@@ -79,7 +79,7 @@ def __init__(self, output_dir: Path, xml_tree: ElementTree, cmdout: dict) -> Non
79
filepath=Path(error.xpath("location")[0].get("file")),
80
checker=error.get("id"),
81
category=category,
82
- cwe=CWEs.from_id(error.get("cwe", -1)),
+ cwe=CWEs.from_id(int(error.get("cwe", -1))),
83
message=error.get("msg"),
84
lines=[
85
int(location.get("line"))
0 commit comments