Refresh HiveGrid Cloud reference snapshot

This commit is contained in:
david committed 2026-08-03 15:31:14 +02:00
1 parent 5e99e14772
commit 7f88026f79
5955 files changed
+1177325 -188362

No files matched your search

@@ -10,7 +10,6 @@ export const repoRoot = path.resolve(__dirname, "..");
export const buildCommand = { command: "pnpm", args: ["run", "build"] };
export const runtimeScanRoots = ["package.json", "apps", "packages", "scripts", "Dockerfile"];
export const excludedRuntimePrefixes = ["packages/plugins/"];
export const ignoredDirectoryNames = new Set([
".git",
@@ -52,14 +51,6 @@ const forbiddenPatterns = [
{ id: "packages-plugins-path", pattern: /(?:^|["'`\s./])packages\/plugins(?:["'`\s/]|$)/ },
];
function isAllowedPluginMetadataReference(relativeFilePath, line) {
const normalized = normalizeRelativePath(relativeFilePath);
if (normalized === "Dockerfile" && line.trim() === "COPY packages/plugins/package.json packages/plugins/package.json") {
return true;
}
return normalized === "scripts/coverage-targets.json";
}
function toRelativePath(root, absolutePath) {
return path.relative(root, absolutePath).split(path.sep).join("/");
}
@@ -106,11 +97,6 @@ export function isTestFile(filePath) {
);
}
export function isExcludedRuntimePath(relativePath) {
const normalized = normalizeRelativePath(relativePath);
return excludedRuntimePrefixes.some((prefix) => normalized === prefix.slice(0, -1) || normalized.startsWith(prefix));
}
async function pathExists(root, relativePath) {
try {
await stat(path.join(root, relativePath));
@@ -132,7 +118,7 @@ export async function collectSourceFiles(root = repoRoot, scanRoots = runtimeSca
const absolutePath = path.join(directory, entry.name);
const relativePath = toRelativePath(root, absolutePath);
if (entry.isDirectory()) {
if (isIgnoredDirectory(entry.name, relativePath) || isExcludedRuntimePath(relativePath)) continue;
if (isIgnoredDirectory(entry.name, relativePath)) continue;
await walk(absolutePath);
continue;
}
@@ -140,7 +126,7 @@ export async function collectSourceFiles(root = repoRoot, scanRoots = runtimeSca
if (relativePath === "scripts/verify-core-build-without-plugins-smoke.mjs") continue;
if (relativePath === "scripts/scan-removed-modules.ts") continue;
if (!isSourceFile(entry.name) || isGeneratedOrIgnoredFile(entry.name)) continue;
if (isExcludedRuntimePath(relativePath) || isTestFile(relativePath)) continue;
if (isTestFile(relativePath)) continue;
files.push(absolutePath);
}
}
@@ -155,7 +141,7 @@ export async function collectSourceFiles(root = repoRoot, scanRoots = runtimeSca
const absoluteRoot = path.join(root, normalizedRoot);
const rootStat = await stat(absoluteRoot);
if (rootStat.isFile()) {
if (isSourceFile(absoluteRoot) && !isGeneratedOrIgnoredFile(absoluteRoot) && !isTestFile(normalizedRoot) && !isExcludedRuntimePath(normalizedRoot)) {
if (isSourceFile(absoluteRoot) && !isGeneratedOrIgnoredFile(absoluteRoot) && !isTestFile(normalizedRoot)) {
files.push(absoluteRoot);
}
continue;
@@ -174,7 +160,6 @@ export function findForbiddenPluginImports(sourceText, relativeFilePath) {
for (const { id, pattern } of forbiddenPatterns) {
pattern.lastIndex = 0;
if (!pattern.test(line)) continue;
if (isAllowedPluginMetadataReference(relativeFilePath, line)) continue;
diagnostics.push({ file: normalizeRelativePath(relativeFilePath), line: index + 1, id, text: line.trim() });
}
});