Function
createRuleId
(scope: RuleScope, kind: RuleKind, modeSlug: string | undefined, relativePath: string)
Source from the content-addressed store, hash-verified
| 385 | } |
| 386 | |
| 387 | function createRuleId(scope: RuleScope, kind: RuleKind, modeSlug: string | undefined, relativePath: string): string { |
| 388 | return [scope, kind, modeSlug ?? "generic", relativePath].join(":") |
| 389 | } |
| 390 | |
| 391 | function createRuleTemplate(fileName: string, input: CreateRuleInput): string { |
| 392 | const title = path.basename(fileName, ".md") |
Tested by
no test coverage detected