MCPcopy Index your code
hub / github.com/continuedev/continue / createRelativeRuleFilePathParts

Function createRelativeRuleFilePathParts

core/config/markdown/utils.ts:7–10  ·  view source on GitHub ↗
(ruleName: string)

Source from the content-addressed store, hash-verified

5import { joinPathsToUri } from "../../util/uri";
6
7function createRelativeRuleFilePathParts(ruleName: string): string[] {
8 const safeRuleName = sanitizeRuleName(ruleName);
9 return [".continue", "rules", `${safeRuleName}.${RULE_FILE_EXTENSION}`];
10}
11
12export function createRelativeRuleFilePath(ruleName: string): string {
13 return createRelativeRuleFilePathParts(ruleName).join("/");

Callers 2

createRuleFilePathFunction · 0.85

Calls 1

sanitizeRuleNameFunction · 0.90

Tested by

no test coverage detected