Run singleton checker standalone.
()
| 119 | |
| 120 | |
| 121 | def main() -> None: |
| 122 | """Run singleton checker standalone.""" |
| 123 | from ci.util.check_files import run_checker_standalone |
| 124 | from ci.util.paths import PROJECT_ROOT |
| 125 | |
| 126 | checker = SingletonInHeadersChecker() |
| 127 | run_checker_standalone( |
| 128 | checker, |
| 129 | [str(PROJECT_ROOT / "src")], |
| 130 | "Singleton usage violation (see rules in singleton_in_headers_checker.py)", |
| 131 | extensions=[".h", ".hpp"], |
| 132 | ) |
| 133 | |
| 134 | |
| 135 | if __name__ == "__main__": |
no test coverage detected