forked from Open-Transactions/Open-Transactions
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Filip Gospodinov
committed
Jun 6, 2014
1 parent
797a0c8
commit a7a6f6c
Showing
3 changed files
with
40 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
# The goal is to remove the suppressed checks stepwise and fix the issues | ||
# in the same commit. Use cppcheck --inline-suppr for false positives. | ||
sup_warn="--suppress=nullPointer" | ||
sup_info="--suppress=ConfigurationNotChecked" | ||
sup_perf="--suppress=stlSize --suppress=redundantAssignment \ | ||
--suppress=passedByValue --suppress=postfixOperator" | ||
sup_style="--suppress=variableScope --suppress=unreadVariable \ | ||
--suppress=noCopyConstructor --suppress=unusedVariable \ | ||
--suppress=cstyleCast --suppress=multiCondition" | ||
suppress="$sup_warn $sup_info $sup_perf $sup_style" | ||
enabled="--enable=warning --enable=information --enable=performance \ | ||
--enable=portability --enable=missingInclude --enable=style" | ||
# Exit code '1' is returned if arguments are not valid or if no input | ||
# files are provided. Compare 'cppcheck --help'. | ||
cppcheck -f -q --error-exitcode=2 $enabled $suppress "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters