Run platform includes checker standalone.
()
| 166 | |
| 167 | |
| 168 | def main() -> None: |
| 169 | """Run platform includes checker standalone.""" |
| 170 | from ci.util.check_files import run_checker_standalone |
| 171 | from ci.util.paths import PROJECT_ROOT |
| 172 | |
| 173 | checker = PlatformIncludesChecker() |
| 174 | run_checker_standalone( |
| 175 | checker, |
| 176 | [ |
| 177 | str(PROJECT_ROOT / "src" / "fl"), |
| 178 | str(PROJECT_ROOT / "src" / "fx"), |
| 179 | str(PROJECT_ROOT / "tests" / "fl"), |
| 180 | str(PROJECT_ROOT / "tests" / "fx"), |
| 181 | str(PROJECT_ROOT / "examples"), |
| 182 | ], |
| 183 | "Found direct platform-specific header includes", |
| 184 | extensions=[".cpp", ".h", ".hpp", ".ino"], |
| 185 | ) |
| 186 | |
| 187 | |
| 188 | if __name__ == "__main__": |
no test coverage detected