Remove two usingnamespace & ptrCast on function pointer (#18486)

This commit is contained in:
pfg
2025-03-26 14:41:14 -07:00
committed by GitHub
parent 57cda4a445
commit f4ab2e4986
2 changed files with 580 additions and 630 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -28,7 +28,7 @@ const words: Record<string, { reason: string; limit?: number; regex?: boolean }>
"== alloc.ptr": { reason: "The std.mem.Allocator context pointer can be undefined, which makes this comparison undefined behavior" },
"!= alloc.ptr": { reason: "The std.mem.Allocator context pointer can be undefined, which makes this comparison undefined behavior" },
[String.raw`: [a-zA-Z0-9_\.\*\?\[\]\(\)]+ = undefined,`]: { reason: "Do not default a struct field to undefined", limit: 246, regex: true },
"usingnamespace": { reason: "This brings Bun away from incremental / faster compile times.", limit: 496 },
"usingnamespace": { reason: "This brings Bun away from incremental / faster compile times.", limit: 494 },
};
const words_keys = [...Object.keys(words)];