Skip to content

Instantly share code, notes, and snippets.

@uudashr
Last active May 31, 2018 04:40
Show Gist options
  • Save uudashr/56942a80cb00577c210e84ad00374d61 to your computer and use it in GitHub Desktop.
Save uudashr/56942a80cb00577c210e84ad00374d61 to your computer and use it in GitHub Desktop.
VS Code - Go project common settings
{
"go.autocompleteUnimportedPackages": true,
"go.gocodeAutoBuild": true,
"go.buildOnSave": "off",
"go.testOnSave": true,
"go.testFlags": ["-short"],
"go.lintTool": "golangci-lint",
"go.lintFlags": [
"--exclude-use-default=false",
"--enable=golint",
"--enable=gocyclo",
"--enable=goconst",
"--enable=unconvert",
"--exclude=^Error return value of `.*\\.Log` is not checked$",
"--exclude=^G104: Errors unhandled\\.$$",
"--exclude=^G304: Potential file inclusion via variable$$"
],
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"vendor/": true,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment