INNER CODE UNIT · Python

output

ClickHouse/ai-sdk-cpp · scripts/lint.py:122

        output = stdout.decode() + stderr.decode()
        success = proc.returncode == 0
        
        return file, success, output


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

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…