Skip to content

x/tools/gopls: feature: integrate "spaghetti" dependency analysis #67479

@adonovan

Description

@adonovan

https://github.com/adonovan/spaghetti is a static analysis tool for Go that helps you find out why your application depends on a given package, and lets you visualize what your dependencies would be if a given set of imports were eliminated. This can help you understand what work is required to break a dependency on a package that is undesirable, for instance because it is insecure, buggy, unmaintained or legally problematic.

Using its new web server, Gopls could integrate this tool to make it easier to find and invoke. For example, a Code Action associated with the go.mod file could invoke the tool to report the dependencies of that module, and a Code Action associated with a package declaration could invoke the tool to show how the main module depends on that package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequestIssues asking for a new feature that does not need a proposal.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