Allow absent version headers below structural controls

This commit is contained in:
2026-10-15 22:22:56 +00:00
parent e69ad0f32d
commit e4270c9b14
5 changed files with 102 additions and 3 deletions

View File

@@ -196,7 +196,7 @@ func processSourceVersion(root *document.Node, rule *VersionRule, role sourceVer
interpreted := interpretVersion(rule, root)
evidence.version = interpreted.version
if sourceVersionControlOverlap(root, evidence.resolvedPath) {
if resolved.present && sourceVersionControlOverlap(root, evidence.resolvedPath) {
evidence.redactText()
result.payload = nil
result.diagnostics = []Diagnostic{sourceVersionOverlapDiagnostic(rule, evidence)}