From 34890c8855f8f7a4e9fea1a7781ef2eca107c2ef Mon Sep 17 00:00:00 2001 From: chloe caruso Date: Mon, 21 Apr 2025 12:27:50 -0700 Subject: [PATCH] a --- test/internal/ban-words.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/internal/ban-words.test.ts b/test/internal/ban-words.test.ts index 1e15dc4fff..6b43ee2fe7 100644 --- a/test/internal/ban-words.test.ts +++ b/test/internal/ban-words.test.ts @@ -29,14 +29,16 @@ const words: Record "== 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: 242, regex: true }, + [String.raw`: [a-zA-Z0-9_\.\*\?\[\]\(\)]+ = undefined,`]: { reason: "Do not default a struct field to undefined", limit: 241, regex: true }, "usingnamespace": { reason: "Zig 0.15 will remove `usingnamespace`" }, "std.fs.Dir": { reason: "Prefer bun.sys + bun.FD instead of std.fs", limit: 180 }, "std.fs.cwd": { reason: "Prefer bun.FD.cwd()", limit: 103 }, - "std.fs.File": { reason: "Prefer bun.sys + bun.FD instead of std.fs", limit: 71 }, + "std.fs.File": { reason: "Prefer bun.sys + bun.FD instead of std.fs", limit: 70 }, ".stdFile()": { reason: "Prefer bun.sys + bun.FD instead of std.fs.File. Zig hides 'errno' when Bun wants to match libuv", limit: 18 }, ".stdDir()": { reason: "Prefer bun.sys + bun.FD instead of std.fs.File. Zig hides 'errno' when Bun wants to match libuv", limit: 48 }, + + ".arguments_old(": { reason: "Please migrate to .argumentsAsArray() or another argument API", limit: 291 }, }; const words_keys = [...Object.keys(words)];