Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
@@ -6,6 +6,10 @@ import { fileURLToPath } from "node:url";
|
||||
const FILENAME = fileURLToPath(import.meta.url);
|
||||
const REPO_ROOT = path.resolve(FILENAME, "..", "..");
|
||||
|
||||
function toPosixPath(value) {
|
||||
return value.split(path.sep).join("/");
|
||||
}
|
||||
|
||||
export const SOURCE_HEALTH_RULES = Object.freeze([
|
||||
{ id: "api-app-composition", path: "apps/api/src/app.ts", maxLines: 450 },
|
||||
{ id: "api-route-modules", path: "apps/api/src/routes", maxLines: 500, glob: /\.ts$/ },
|
||||
@@ -43,7 +47,7 @@ export async function evaluateSourceHealth({ rules = SOURCE_HEALTH_RULES, allowl
|
||||
for (const rule of rules) {
|
||||
const files = await listFiles(rule.path, rule.glob ?? /[\s\S]/);
|
||||
for (const file of files) {
|
||||
const relativePath = path.relative(REPO_ROOT, file);
|
||||
const relativePath = toPosixPath(path.relative(REPO_ROOT, file));
|
||||
const lineCount = await countLines(file);
|
||||
const exception = allowed.get(relativePath);
|
||||
if (exception) {
|
||||
|
||||
Reference in new issue
Block a user