Belle II Software  release-08-01-10
ecl_doxygen.py
1 #!/usr/bin/env python3
2 
3 
10 
11 """
12 Perform code doxygen checks for every commit to the ecl package.
13 Eventually these checks can be included as git hooks.
14 """
15 
16 import re
17 from b2test_utils import check_error_free
18 
19 if __name__ == "__main__":
20 
21  ignoreDiscreteCosineTransform = 'DiscreteCosineTransform'
22  ignoreEclConfigurationPure = 'EclConfigurationPure'
23 
24  check_error_free("b2code-doxygen-warnings", "doxygen", "ecl",
25  lambda x:
26  re.findall(ignoreDiscreteCosineTransform, x) or
27  re.findall(ignoreEclConfigurationPure, x) or
28  x == "'")