Find all source files that should be processed.
(self)
| 469 | return success |
| 470 | |
| 471 | def find_source_files(self) -> List[Path]: |
| 472 | """Find all source files that should be processed.""" |
| 473 | extensions = { |
| 474 | ".rs", |
| 475 | ".py", |
| 476 | ".go", |
| 477 | ".ts", |
| 478 | ".js", |
| 479 | ".c", |
| 480 | ".h", |
| 481 | ".cpp", |
| 482 | ".hpp", |
| 483 | ".sol", |
| 484 | } |
| 485 | source_files = [] |
| 486 | |
| 487 | for ext in extensions: |
| 488 | for file_path in self.repo_root.rglob(f"*{ext}"): |
| 489 | if file_path.is_file() and not self._is_excluded(file_path): |
| 490 | source_files.append(file_path) |
| 491 | |
| 492 | return sorted(source_files) |
| 493 | |
| 494 | |
| 495 | def main(): |
no test coverage detected