Belle II Software development
ecl_doxygen.py
1#!/usr/bin/env python3
2
3
10
11"""
12Perform code doxygen checks for every commit to the ecl package.
13Eventually these checks can be included as git hooks.
14"""
15
16import re
17from b2test_utils import check_error_free
18
19if __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 == "'")