fix: apply CodeRabbit auto-fixes

Fixed 1 file(s) based on 1 unresolved review comment.

Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
This commit is contained in:
coderabbitai[bot]
2026-05-05 22:36:38 +00:00
committed by GitHub
parent a411e08e88
commit 96d2556209

View File

@@ -63,13 +63,13 @@ function check(filePath) {
// 4+5. execution_context @-refs resolve + no trailing prose // 4+5. execution_context @-refs resolve + no trailing prose
const refs = extractExecutionContextRefs(content); const refs = extractExecutionContextRefs(content);
for (const { ref, normalized, hasTrailingProse } of refs) { for (const { token, normalized, trailingProse } of refs) {
const absPath = path.join(GSD_ROOT, normalized); const absPath = path.join(GSD_ROOT, normalized);
if (!fs.existsSync(absPath)) { if (!fs.existsSync(absPath)) {
violations.push(`execution_context: @-ref "${normalized}" does not exist on disk`); violations.push(`execution_context: @-ref "${normalized}" does not exist on disk`);
} }
if (hasTrailingProse) { if (trailingProse) {
violations.push(`execution_context: @-ref "${ref}" has trailing prose on the same line`); violations.push(`execution_context: @-ref "${token}" has trailing prose on the same line`);
} }
} }