Skip to content

Commit

Permalink
cppcheck: suppress information[normalCheckLevelMaxBranches] reports
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
siteshwar committed Jul 18, 2024
1 parent b3a2279 commit b08e972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/plugins/cppcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def handle_args(self, parser, args, props):
props.env["CSWRAP_TIMEOUT_FOR"] += ":cppcheck"
props.cswrap_filters += ["csgrep --mode=json --invert-match \
--checker CPPCHECK_WARNING \
--event 'cppcheckError|internalAstError|preprocessorErrorDirective|syntaxError|unknownMacro'"]
--event 'cppcheckError|internalAstError|normalCheckLevelMaxBranches|preprocessorErrorDirective|syntaxError|unknownMacro'"]

if args.cppcheck_add_flag:
# propagate custom cppcheck flags
Expand Down

0 comments on commit b08e972

Please sign in to comment.