Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
adonovan opened this issue May 17, 2024 · 0 comments
Open

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

adonovan opened this issue May 17, 2024 · 0 comments
Labels
FeatureRequest gopls Issues related to the Go language server, gopls.
Milestone

Comments

@adonovan
Copy link
Member

adonovan commented May 17, 2024

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.

@gopherbot gopherbot added Tools This label describes issues relating to any tools in the x/tools repository. gopls Issues related to the Go language server, gopls. labels May 17, 2024
@adonovan adonovan removed the Tools This label describes issues relating to any tools in the x/tools repository. label May 17, 2024
@gopherbot gopherbot added this to the Unreleased milestone May 17, 2024
@adonovan adonovan modified the milestones: Unreleased, gopls/backlog May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FeatureRequest gopls Issues related to the Go language server, gopls.
Projects
None yet
Development

No branches or pull requests

2 participants