Skip to content

Commit b0dd643

Browse files
committed
refactor(bug-detectors): move suppression helpers to shared
Keep shared suppression utilities out of the auto-loaded detector directory so helper placement cannot accidentally change runtime detector loading. This preserves the existing suppression behavior while separating detector entrypoints from package-internal support code.
1 parent 82e052f commit b0dd643

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/bug-detectors/internal/code-injection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ import {
3333
matchesIgnoreRules,
3434
type OriginFrame,
3535
parseOriginFrame,
36-
} from "./finding-suppression";
36+
} from "../shared/finding-suppression";
3737

3838
const BASE_CANARY_NAME = "jaz_zer";
3939
const MAX_STACK_LINES = 8;
4040

41-
export type { IgnoreRule } from "./finding-suppression";
41+
export type { IgnoreRule } from "../shared/finding-suppression";
4242

4343
/**
4444
* Configuration for the Code Injection bug detector.

packages/bug-detectors/internal/path-traversal.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import {
3030
matchesIgnoreRules,
3131
type OriginFrame,
3232
parseOriginFrame,
33-
} from "./finding-suppression";
33+
} from "../shared/finding-suppression";
3434

3535
/**
3636
* Importing this file adds "before-hooks" for all functions in the built-in `fs`, `fs/promises`, and `path` module and guides
@@ -40,7 +40,7 @@ import {
4040
const goal = "../../jaz_zer";
4141
const MAX_STACK_LINES = 8;
4242

43-
export type { IgnoreRule } from "./finding-suppression";
43+
export type { IgnoreRule } from "../shared/finding-suppression";
4444

4545
/**
4646
* Configuration for the Path Traversal bug detector.

packages/bug-detectors/internal/finding-suppression.test.ts renamed to packages/bug-detectors/shared/finding-suppression.test.ts

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)