MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / gate_file

Function gate_file

scripts/website/blog_prose_gate.py:270–281  ·  view source on GitHub ↗
(path, base_sha, repo_root, lt_ctx)

Source from the content-addressed store, hash-verified

268
269
270def 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
284def main():

Callers 1

mainFunction · 0.85

Calls 6

head_contentFunction · 0.85
base_contentFunction · 0.85
net_newFunction · 0.85
run_valeFunction · 0.85
run_capcheckFunction · 0.85
lt_findingsFunction · 0.85

Tested by

no test coverage detected