refactor: simplify audited mechanisms and quality evidence (#314)

This commit is contained in:
AAA authored and GitHub committed 2026-08-28 18:19:15 +08:00
1 parent 7653164192
commit fe1e31c8bb
29 files changed
+761 -1107

No files matched your search

+4 -5
View File
@@ -6,11 +6,10 @@ import { dirname, extname, relative, resolve, sep } from "node:path";
import { fileURLToPath } from "node:url";
const root = resolve(dirname(fileURLToPath(import.meta.url)), "..");
const repositoryFiles = execFileSync(
"git",
["ls-files", "--cached", "--others", "--exclude-standard"],
{ cwd: root, encoding: "utf8" },
)
const repositoryFiles = execFileSync("git", ["ls-files", "--cached"], {
cwd: root,
encoding: "utf8",
})
.trim()
.split(/\r?\n/u)
.filter((file) => file && existsSync(resolve(root, file)));