(violations: dict[str, list[tuple[int, str]]])
| 99 | |
| 100 | |
| 101 | def _print_violations(violations: dict[str, list[tuple[int, str]]]) -> int: |
| 102 | total = 0 |
| 103 | for path, issues in sorted(violations.items()): |
| 104 | try: |
| 105 | rel = str(Path(path).relative_to(PROJECT_ROOT)) |
| 106 | except ValueError: |
| 107 | rel = path |
| 108 | rel = rel.replace("\\", "/") |
| 109 | print(f"\n{rel}:") |
| 110 | for line_no, msg in sorted(issues): |
| 111 | print(f" Line {line_no}: {msg}") |
| 112 | total += 1 |
| 113 | return total |
| 114 | |
| 115 | |
| 116 | def run_platformio_lint(warn_only: bool | None = None) -> bool: |
no test coverage detected