(path, base_sha, repo_root, lt_ctx)
| 268 | |
| 269 | |
| 270 | def gate_file(path, base_sha, repo_root, lt_ctx): |
| 271 | head = head_content(path, repo_root) |
| 272 | base = base_content(base_sha, path, repo_root) |
| 273 | new = [] |
| 274 | new += net_new(run_vale(head, path, repo_root), run_vale(base, path, repo_root)) |
| 275 | new += net_new(run_capcheck(head, path), run_capcheck(base, path)) |
| 276 | if lt_ctx: |
| 277 | head_lt = lt_findings(head, path, lt_ctx) |
| 278 | base_lt = lt_findings(base, path, lt_ctx) |
| 279 | if head_lt is not None and base_lt is not None: |
| 280 | new += net_new(head_lt, base_lt) |
| 281 | return new |
| 282 | |
| 283 | |
| 284 | def main(): |
no test coverage detected