Belle II Software  release-06-02-00
code-quality-doxygen.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 
11 
12 """
13 Perform code doxygen checks for every commit to the analysis package.
14 Eventually these checks can be included as git hooks.
15 """
16 
17 import re
18 from b2test_utils import check_error_free
19 
20 if __name__ == "__main__":
21  # run the check ignoring OrcaKinFit errors
22  ignoreme = 'Belle2::OrcaKinFit'
23  check_error_free("b2code-doxygen-warnings", "doxygen", "analysis",
24  lambda x: re.findall(ignoreme, x) or x == "'")