Belle II Software
release-05-01-25
b2bii_cppcheck.py
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
4
"""
5
Perform code quality cppchecks for every commit to the b2bii package.
6
"""
7
8
import
re
9
from
b2test_utils
import
check_error_free
10
11
if
__name__ ==
"__main__"
:
12
# Ignore the nofile .. [missingInclude] that is always at the end of cppcheck
13
ignoreme =
'Cppcheck cannot find all the include files'
14
check_error_free(
"b2code-cppcheck"
,
"cppcheck"
,
"b2bii"
,
15
lambda
x: re.findall(ignoreme, x)
or
x
is
"'"
)
b2bii
tests
b2bii_cppcheck.py
Generated on Fri Nov 5 2021 03:47:30 for Belle II Software by
1.8.17