Skip to content

Commit 68035dc

Browse files
mikebonnetclaude
andcommitted
feat: run lizard with parallel threads matching cpu count
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b080b53 commit 68035dc

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/agentready/assessors/code_quality.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import ast
44
import configparser
55
import logging
6+
import os
67
import re
78
import subprocess
89
import tomllib
@@ -666,7 +667,14 @@ def _assess_with_lizard(self, repository: Repository) -> Finding:
666667
try:
667668
last_line = None
668669
with safe_subprocess_run_stream(
669-
["lizard", "-i", "-1", str(repository.path)],
670+
[
671+
"lizard",
672+
"-i",
673+
"-1",
674+
"-t",
675+
str(os.cpu_count() or 1),
676+
str(repository.path),
677+
],
670678
timeout=60,
671679
) as stream:
672680
for line in stream:

0 commit comments

Comments
 (0)