Belle II Software  release-05-02-19
framework_cppcheck.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 """
5 Perform code quality cppchecks for every commit to the framework 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", "framework",
15  lambda x: re.findall(ignoreme, x) or x is "'")