()
| 180 | |
| 181 | |
| 182 | def main() -> int: |
| 183 | issues: list[str] = [] |
| 184 | files = iter_markdown_files() |
| 185 | for path in files: |
| 186 | text = path.read_text(encoding="utf-8", errors="ignore") |
| 187 | issues.extend(check_fences(path, text)) |
| 188 | issues.extend(check_links(path, text)) |
| 189 | issues.extend(check_summary_links()) |
| 190 | |
| 191 | unique_issues = sorted(set(issues)) |
| 192 | if unique_issues: |
| 193 | print("\n".join(unique_issues)) |
| 194 | print(f"\n{len(unique_issues)} issue(s) found across {len(files)} Markdown files.") |
| 195 | return 1 |
| 196 | print(f"All {len(files)} Markdown files passed project checks.") |
| 197 | return 0 |
| 198 | |
| 199 | |
| 200 | if __name__ == "__main__": |
no test coverage detected