INNER CODE UNIT · Python
lint_all_files
ClickHouse/ai-sdk-cpp · scripts/lint.py:128
async def lint_all_files(files: List[Path], compile_commands: Path, fix: bool, jobs: int):
"""Lint all files in parallel."""
extra_args = get_system_include_args()
semaphore = asyncio.Semaphore(jobs)
# Create tasks for all files
tasks = [
lint_file(file, compile_commands, fix, extra_args, semaphore)
for file in files
]
# Run with progress bar
with Progress(
SpinnerColumn(),
TextColumn("[progress.description]{task.description}"),
BarColumn(),
MofNCompleteColumn(),
console=console,