MCPcopy Create free account
hub / github.com/continuedev/continue / isRootLevelRule

Function isRootLevelRule

core/llm/rules/getSystemMessageWithRules.ts:135–137  ·  view source on GitHub ↗
(rule: RuleWithSource)

Source from the content-addressed store, hash-verified

133 * Checks if a rule is a root-level rule (.continue directory or no file path)
134 */
135const isRootLevelRule = (rule: RuleWithSource): boolean => {
136 return !rule.sourceFile || rule.sourceFile.includes(".continue/"); // sourceFile path is absolute - hence we need to check for it in between
137};
138
139/**
140 * Determines if a rule should be considered global and always applied

Callers 2

isGlobalRuleFunction · 0.85
shouldApplyRuleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected