-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
go vet: allow disabling composites analysis #446
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
hi! |
exclude by text worked; leaving a reference here for others:
|
The following worked for me (s/composites/composite/): diff --git a/.golangci.yml b/.golangci.yml
index ce8010e7..5b39faf1 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -6,6 +6,7 @@ linters:
- ineffassign
- unconvert
- misspell
+ - govet
linters-settings:
gocyclo:
min-complexity: 11
@@ -13,5 +14,8 @@ linters-settings:
ignore: fmt:.*,io/ioutil:^Read.*,github.com/spf13/cobra:MarkFlagRequired,github.com/spf13/viper:BindPFlag
golint:
min-confidence: 1.1
+issues:
+ exclude:
+ - composite
run:
tests: false |
This should now be configurable (see: #697). |
For those of you disabling the entire composites check, would golang/go#43864 seem like a good compromise to not disable the check entirely? Please upvote that proposal or comment on it, depending on your thoughts. |
I'd be nice to be able to disable
go vet
's-composites
analysis.Thanks for considering.
golangci-lint --version
(or git commit if you don't use binary distribution)cat .golangci.yml
go version && go env
golangci-lint run -v
The text was updated successfully, but these errors were encountered: