fix(contributor-scan): retain declared Gruntfile and report census gaps honestly

This commit is contained in:
Marius Ciepluch
2026-09-14 08:07:06 +02:00
parent 88216c5072
commit 7c1c2d4475
18 changed files with 1048 additions and 25 deletions
+6 -1
View File
@@ -26,7 +26,12 @@ class Backend:
assert any(p.read_bytes() for p in root.rglob("*") if p.is_file())
if self.fail:
return None
return SimpleNamespace(cpg_path=Path("test.cpg"), run_batch=self.batch, cleanup=lambda: None)
names = [str(p) for p in root.rglob("*") if p.is_file()]
def batch(kind, requests):
return {"__census__": [{"methods": len(names), "files": len(names), "file_names": names}], **self.batch(kind, requests)}
return SimpleNamespace(cpg_path=Path("test.cpg"), run_batch=batch, cleanup=lambda: None)
def batch(self, kind, requests):
if any(p.get("evidenceOnly") == "true" for p in requests.values()):