Skip to content
Snippets Groups Projects
Commit 6c719e4b authored by Damiano Amatruda's avatar Damiano Amatruda
Browse files

[Linter] Refine Cppcheck suppressions

- Fixes Cppcheck error 'information: Unmatched suppression:
  unusedFunction'
- Linter script no longer suppresses warning 'noExplicitConstructor'
parent f49d5471
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,7 @@ repos:
--language=c++,
--enable=all,
--inline-suppr,
--suppress=unmatchedSuppression,
--suppress=unusedFunction,
--suppress=missingInclude
]
......
......@@ -232,8 +232,9 @@ lint_cppcheck() {
get_cppcheck_opts opts
cppcheck --language=c++ --std=c++11 --enable=all --inline-suppr \
--suppress=unusedFunction --suppress=missingInclude \
--error-exitcode=1 "${opts[@]}" "$source_dir/src"
--suppress=unmatchedSuppression --suppress=unusedFunction \
--suppress=missingInclude --error-exitcode=1 "${opts[@]}" \
"$source_dir/src"
echo
}
......
......@@ -273,7 +273,7 @@ def check_cppcheck(directory):
# Run cppcheck on the directory
try:
result = check_output(['cppcheck', '-q', '--language=c++', '--template=gcc', '--std=c++11', '--enable=all', '--inline-suppr',
'--suppress=unusedFunction', '--suppress=missingInclude', '--suppress=noExplicitConstructor',
'--suppress=unmatchedSuppression', '--suppress=unusedFunction', '--suppress=missingInclude',
directory], stderr=STDOUT)
# Parse results and count errors
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment