diff --git a/pkg/result/result.go b/pkg/result/result.go index 3c1fc70275..0b94140e62 100644 --- a/pkg/result/result.go +++ b/pkg/result/result.go @@ -183,5 +183,6 @@ func (r *Result) WithAttribute(attr block.Attribute) *Result { } r.RangeAnnotation = fmt.Sprintf("%s: %s", typeStr, raw) + r.Location = r.Range() return r }