Skip to content

Commit aa2fe2f

Browse files
committed
fix(cppcheck): enforce minimum version 2.16.0
SARIF output format is only supported in CppCheck versions 2.16.0 and later.
1 parent 8a075d3 commit aa2fe2f

File tree

1 file changed

+6
-1
lines changed
  • codesectools/sasts/tools/Cppcheck

1 file changed

+6
-1
lines changed

codesectools/sasts/tools/Cppcheck/sast.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from codesectools.sasts.core.sast.properties import SASTProperties
1111
from codesectools.sasts.core.sast.requirements import (
1212
Binary,
13+
BinaryVersion,
1314
SASTRequirements,
1415
)
1516
from codesectools.sasts.tools.Cppcheck.parser import CppcheckAnalysisResult
@@ -40,7 +41,11 @@ class CppcheckSAST(PrebuiltBuildlessSAST):
4041
properties = SASTProperties(free=True, offline=True)
4142
requirements = SASTRequirements(
4243
full_reqs=[
43-
Binary("cppcheck", url="https://cppcheck.sourceforge.io/"),
44+
Binary(
45+
"cppcheck",
46+
url="https://cppcheck.sourceforge.io/",
47+
version=BinaryVersion("--version", r"(\d+\.\d+\.\d+)", "2.16.0"),
48+
),
4449
],
4550
partial_reqs=[],
4651
)

0 commit comments

Comments
 (0)