Skip to content

Commit b08e972

Browse files
committed
cppcheck: suppress information[normalCheckLevelMaxBranches] reports
Error: CPPCHECK_WARNING: [#def1] units-2.22/getopt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: [#def2] units-2.22/parse.tab.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Signed-off-by: Siteshwar Vashisht <svashisht@redhat.com>
1 parent b3a2279 commit b08e972

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/plugins/cppcheck.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def handle_args(self, parser, args, props):
6565
props.env["CSWRAP_TIMEOUT_FOR"] += ":cppcheck"
6666
props.cswrap_filters += ["csgrep --mode=json --invert-match \
6767
--checker CPPCHECK_WARNING \
68-
--event 'cppcheckError|internalAstError|preprocessorErrorDirective|syntaxError|unknownMacro'"]
68+
--event 'cppcheckError|internalAstError|normalCheckLevelMaxBranches|preprocessorErrorDirective|syntaxError|unknownMacro'"]
6969

7070
if args.cppcheck_add_flag:
7171
# propagate custom cppcheck flags

0 commit comments

Comments
 (0)