Belle II Software  release-08-01-10
trg_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 trg package.
14 """
15 
16 import re
17 from b2test_utils import check_error_free
18 
19 
20 if __name__ == "__main__":
21  ignoreme = "nofile:0:0"
22  check_error_free("b2code-cppcheck", "cppcheck", "trg",
23  lambda x: re.findall(ignoreme, x) or x == "'")