Created
January 27, 2021 21:44
-
-
Save mohclips/6534dbae1ddb968502a230c7710b048e to your computer and use it in GitHub Desktop.
relieve the developer of the curmudgeon of golint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"go.useLanguageServer": true, | |
// gometalinter is not allowed but works? | |
"go.lintTool": "gometalinter", | |
"go.lintFlags": [ | |
"--disable-all", | |
"--enable=golint", | |
"--exclude=exported (const|type|method|function) [\\w.]+ should have comment (\\(or a comment on this block\\) )?or be unexported", | |
"--exclude=don't use ALL_CAPS in Go names; use CamelCase", | |
"--exclude=(func|const|struct field|) \\w+ should be \\w+" | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# download and install gometalineter | |
# see https://github.com/alecthomas/gometalinter | |
$ curl -L https://git.io/vp6lP | sh | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment