Skip to content

Commit

Permalink
fix(AIP-192): include location in absolute-link finding (#1056)
Browse files Browse the repository at this point in the history
  • Loading branch information
noahdietz authored Dec 19, 2022
1 parent 70085dc commit f69534d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rules/aip0192/absolute_links.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"strings"

"github.com/googleapis/api-linter/lint"
"github.com/googleapis/api-linter/locations"
"github.com/jhump/protoreflect/desc"
)

Expand All @@ -42,6 +43,7 @@ var absoluteLinks = &lint.DescriptorRule{
return []lint.Problem{{
Message: "Links in comments should be absolute and begin with https://",
Descriptor: d,
Location: locations.DescriptorName(d),
}}
}
}
Expand Down

0 comments on commit f69534d

Please sign in to comment.