Belle II Software
light-2212-foldex
b2bii_cppcheck.py
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
4
11
12
"""
13
Perform code quality cppchecks for every commit to the b2bii package.
14
"""
15
16
import
re
17
from
b2test_utils
import
check_error_free
18
19
if
__name__ ==
"__main__"
:
20
# Ignore the nofile .. [missingInclude] that is always at the end of cppcheck
21
ignoreme =
'Cppcheck cannot find all the include files'
22
# Ignore the unmatched suppression warning useStlAlgorithm
23
ignoreUnmatchedUseStlAlgorithm =
'Unmatched suppression: useStlAlgorithm'
24
check_error_free(
"b2code-cppcheck"
,
"cppcheck"
,
"b2bii"
,
25
lambda
x:
26
re.findall(ignoreme, x)
or
27
re.findall(ignoreUnmatchedUseStlAlgorithm, x)
or
28
x ==
"'"
)
b2bii
tests
b2bii_cppcheck.py
Generated on Sun Jan 15 2023 23:31:29 for Belle II Software by
1.9.1