MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / toRepoRelative

Function toRepoRelative

scripts/oxlint-plugin-executor/utils.js:6–8  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

4export const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../..");
5
6export function toRepoRelative(filename) {
7 return path.relative(repoRoot, path.resolve(filename)).split(path.sep).join("/");
8}
9
10export function isConfigOrTooling(filename) {
11 const normalized = toRepoRelative(filename);

Callers 7

shouldCheckFunction · 0.90
isCloudSourceFunction · 0.90
createFunction · 0.90
shouldCheckFunction · 0.90
isConfigOrToolingFunction · 0.85
isTestLikeFunction · 0.85
isDeclarationFileFunction · 0.85

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected