Parse collection sequence declarations
This commit is contained in:
@@ -231,7 +231,7 @@ func processSourceVersion(root *document.Node, rule *VersionRule, role sourceVer
|
||||
|
||||
interpreted := interpretVersion(rule, root)
|
||||
evidence.version = interpreted.version
|
||||
if resolved.present && sourceVersionControlOverlap(root, evidence.resolvedPath) {
|
||||
if sourceVersionHeaderControlOverlap(root, resolved) {
|
||||
evidence.redactText()
|
||||
result.payload = nil
|
||||
result.diagnostics = []Diagnostic{sourceVersionOverlapDiagnostic(rule, evidence)}
|
||||
@@ -273,6 +273,10 @@ func processSourceVersion(root *document.Node, rule *VersionRule, role sourceVer
|
||||
return result
|
||||
}
|
||||
|
||||
func sourceVersionHeaderControlOverlap(root *document.Node, resolved sourceVersionPath) bool {
|
||||
return resolved.present && sourceVersionControlOverlap(root, resolved.resolvedPath)
|
||||
}
|
||||
|
||||
func sourceVersionOptionsDiagnostic(message string) Diagnostic {
|
||||
return Diagnostic{Code: CodeOptionsInvalid, Severity: SeverityError, Message: message}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user