V10.578 修正 Code Review timeout 誤報
All checks were successful
CD Pipeline / deploy (push) Successful in 1m5s
All checks were successful
CD Pipeline / deploy (push) Successful in 1m5s
This commit is contained in:
@@ -444,9 +444,11 @@ class CodeReviewPipeline:
|
||||
re.IGNORECASE,
|
||||
)
|
||||
for path, content in files.items():
|
||||
for line_no, line in enumerate(content.splitlines(), start=1):
|
||||
lines = content.splitlines()
|
||||
for line_no, line in enumerate(lines, start=1):
|
||||
stripped = line.strip()
|
||||
if request_pattern.search(stripped) and "timeout=" not in stripped:
|
||||
request_block = "\n".join(lines[line_no - 1:line_no + 5])
|
||||
if request_pattern.search(stripped) and "timeout=" not in request_block:
|
||||
findings.append({
|
||||
"severity": "MEDIUM",
|
||||
"type": "performance",
|
||||
|
||||
Reference in New Issue
Block a user