Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions provisional/compare.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ func compare(specs spec.SpecPullRequest) (violationsByPath map[string][]spec.Vio
parent = parent.Parent()
}

// When an ancestor is provisional, we don't need to report violations for this entity
if parent != nil {
continue
}
Comment thread
AryaHassanli marked this conversation as resolved.
Outdated

v := spec.Violation{Entity: entity, Type: violationType}
v.Path, v.Line = entity.Origin()
violationsByPath[v.Path] = append(violationsByPath[v.Path], v)
Expand Down
Loading