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

lint: pass whole directory to staticcheck on write #3133

Merged
merged 1 commit into from
Jan 10, 2021

Conversation

bhcleek
Copy link
Collaborator

@bhcleek bhcleek commented Jan 10, 2021

Pass the whole directory of the buffer being saved when staticcheck is
the metalinter to use; it needs all the files necessary to analyze the
package. Like with golangci-lint, problems with other files are filtered
out of the results.

Fixes #3132

Pass the whole directory of the buffer being saved when staticcheck is
the metalinter to use; it needs all the files necessary to analyze the
package. Like with golangci-lint, problems with other files are filtered
out of the results.

Fixes fatih#3132
@bhcleek bhcleek added this to the vim-go 1.25 milestone Jan 10, 2021
@bhcleek bhcleek merged commit 2b0f1ba into fatih:master Jan 10, 2021
@bhcleek bhcleek deleted the lint/autosave/staticcheck branch January 10, 2021 19:11
bhcleek added a commit that referenced this pull request Jan 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

staticcheck can return spurious errors on autosave
1 participant