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

[Cppcheck] Allow inline suppression

parent 293cecec
No related branches found
No related tags found
No related merge requests found
......@@ -272,8 +272,9 @@ def check_cppcheck(directory):
linter_print(Colors.GREEN + 'cppcheck' + Colors.RESET)
# Run cppcheck on the directory
try:
result = check_output(['cppcheck', '-q', '--language=c++', '--template=gcc', '--std=c++11', '--enable=all', '--suppress=unusedFunction',
'--suppress=missingInclude', '--suppress=noExplicitConstructor', directory], stderr=STDOUT)
result = check_output(['cppcheck', '-q', '--language=c++', '--template=gcc', '--std=c++11', '--enable=all', '--inline-suppr',
'--suppress=unusedFunction', '--suppress=missingInclude', '--suppress=noExplicitConstructor',
directory], stderr=STDOUT)
# Parse results and count errors
errors = re.findall(r'\[(\w+)\]', result.decode('utf-8'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment