-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Disable composite warnings #2502
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
Comments
Since you have Short of figuring out what's causing your file to be saved every 10 seconds (if that's what's happening), then you may also try any or all of these that you prefer:
|
@bhcleek Thanks for your reply! I update the vimrc with the Plug calls I have. I like the linting on save, I just don't see why not setting the field-names should be a linting error and if there is a way to keep the linter on save but not check for this warning. I don't know what might be saving continuously, I could try to investigate whether this is actually the case. |
Checking for unkeyed fields in struct literals is default
and some other place that uses it:
and later you refactor the type by swapping the position of the fields:
Suddenly, |
@bhcleek Thanks again for being responsive! I might try to refactor my code. Otherwise I'll checkout the issue you linked for the golangci-lint. |
What did you do? (required: The issue will be closed when not provided)
After updating to latest version (031b81c) vim-go has become unusable for me. It keeps warning about
composites: xxx composite literal uses unkeyed fields (govet)
every 10 seconds or so and jumping to a line with this warning, without me executing any command or saving the file.What did you expect to happen?
Not to continuously jump to a line with a composite warning every 10 seconds without the file being saved.
Configuration (MUST fill this out):
vim-go version:
I'm using
Plug
and am at hash 031b81cvimrc
you used to reproduce (use a minimal vimrc with other plugins disabled; do not link to a 2,000 line vimrc):Vim version (first three lines from
:version
):NVIM v0.3.8
Go version (
go version
):go version go1.12.6 linux/amd64
The text was updated successfully, but these errors were encountered: