Format declaration paths only for issues
This commit is contained in:
@@ -453,8 +453,11 @@ func collectDeclarationIssues(command Command, parents []string, root bool, issu
|
||||
return
|
||||
}
|
||||
record := command.record
|
||||
path := append(append([]string(nil), parents...), record.name)
|
||||
label := commandpath.FromTokens(path).String()
|
||||
path := append(parents, record.name)
|
||||
var label string
|
||||
if len(record.issues) > 0 || (record.rootOnly && !root) {
|
||||
label = commandpath.Path(path).String()
|
||||
}
|
||||
for _, issue := range record.issues {
|
||||
if label != "" {
|
||||
*issues = append(*issues, fmt.Errorf("command %q: %w", label, issue))
|
||||
|
||||
Reference in New Issue
Block a user