x/tools/gopls: unusedparams analyser reports issues in generated files #71481
Labels
gopls
Issues related to the Go language server, gopls.
ToolProposal
Issues describing a requested change to a Go tool or command-line program.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
gopls version
go env
What did you do?
Run
gopls check
:Contents of
generatedfile.go
:What did you see happen?
The
unusedparam
analyzer reported a problem:What did you expect to see?
I expected this problem not to be reported since the file is generated, therefore we cannot edit the file to fix it.
Note: This is inconsistent with the quickfix for this problem, which correctly does not run because the file is generated:
If I strip the
DO NOT EDIT
comment from the file, the quickfix renamesv
to_
.Editor and settings
Not relevant, this involves directly invoking
gopls check
Logs
No response
The text was updated successfully, but these errors were encountered: