Skip to content

x/tools/gopls: redundant diagnostics due to quick fixes #65966

Open
@findleyr

Description

@findleyr

The following code causes three "too many returns" diagnostics in gopls. Notably, the present but empty result list is required, so this is probably a low priority bug.

func _() () {
  return 0
}

It looks like somehow the "fillreturns" and "noresultvalues" analyzers are colliding, and causing duplication. This may manifest in other ways as we add more quick fixes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.RefactoringIssues related to refactoring toolsToolsThis label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions