Skip to content

Instantly share code, notes, and snippets.

@mohclips
Created January 27, 2021 21:44
Show Gist options
  • Save mohclips/6534dbae1ddb968502a230c7710b048e to your computer and use it in GitHub Desktop.
Save mohclips/6534dbae1ddb968502a230c7710b048e to your computer and use it in GitHub Desktop.
relieve the developer of the curmudgeon of golint
"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+"
]
# 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