Skip to content

Commit 881db05

Browse files
saphidclaude
authored andcommitted
fix(scripts): check:changed passes when only lint-ignored code changed
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent a9ac1e8 commit 881db05

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎scripts/check-changed.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ it("checks changed source paths through the Windows launcher", () => {
397397
expect(result.status, result.stdout + result.stderr).toBe(0);
398398
const calls = project.calls();
399399
expect(calls.find(({ args }) => args[0] === "lint")).toEqual({
400-
args: ["lint", project.source],
400+
args: ["lint", "--no-error-on-unmatched-pattern", project.source],
401401
cwd: project.root,
402402
});
403403
expect(calls.some(({ args }) => args[0] === "fmt" && args.includes(project.source))).toBe(true);

‎scripts/check-changed.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,9 @@ const checkChanged = Effect.fn("checkChanged")(function* (input: {
469469
...(present.length > 0
470470
? [command("format", ["fmt", "--check", "--no-error-on-unmatched-pattern", ...present])]
471471
: []),
472-
...(code.length > 0 ? [command("lint", ["lint", ...code])] : []),
472+
...(code.length > 0
473+
? [command("lint", ["lint", "--no-error-on-unmatched-pattern", ...code])]
474+
: []),
473475
...(runKnip
474476
? knipPasses.map((args, index) => command(`knip ${index + 1}/${knipPasses.length}`, args))
475477
: []),

0 commit comments

Comments
 (0)