style: Clean up code formatting for improved readability
CI / lint-test-build (push) Failing after 14s
CI / lint-test-build (push) Failing after 14s
This commit is contained in:
@@ -63,16 +63,13 @@ def scan_worktree() -> list[str]:
|
||||
|
||||
for rule_name, pattern in PATTERNS:
|
||||
if pattern.search(content):
|
||||
findings.append(
|
||||
f"worktree:{path.relative_to(WORKSPACE)}:{rule_name}")
|
||||
findings.append(f"worktree:{path.relative_to(WORKSPACE)}:{rule_name}")
|
||||
return findings
|
||||
|
||||
|
||||
def scan_git_history() -> list[str]:
|
||||
cmd = ["git", "-C", str(WORKSPACE), "log", "--all",
|
||||
"-p", "--pretty=format:%H"]
|
||||
completed = subprocess.run(
|
||||
cmd, check=False, capture_output=True, text=True)
|
||||
cmd = ["git", "-C", str(WORKSPACE), "log", "--all", "-p", "--pretty=format:%H"]
|
||||
completed = subprocess.run(cmd, check=False, capture_output=True, text=True)
|
||||
if completed.returncode != 0:
|
||||
return ["history_scan_failed"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user