Skip to content

Instantly share code, notes, and snippets.

@albrow
Last active December 14, 2017 00:12
Show Gist options
  • Save albrow/3ece4fd923c69c30be05 to your computer and use it in GitHub Desktop.
Save albrow/3ece4fd923c69c30be05 to your computer and use it in GitHub Desktop.
GoSublime Settings to Run go vet, errcheck, and go install
{
// enable comp-lint, this will effectively disable the live linter
"comp_lint_enabled": true,
// list of commands to run
"comp_lint_commands": [
// run errcheck to catch ignored error return values
{
"cmd": ["errcheck"]
},
// run go vet to catch common mistakes which are syntactically correct
{
"cmd": ["go", "vet"]
},
// run gotype to report compilation errors without actually compiling
{
"cmd": ["gotype", "-a", "."]
}
],
"on_save": [
// run comp-lint when you save,
// naturally, you can also bind this command `gs_comp_lint`
// to a key binding if you want
{
"cmd": "gs_comp_lint"
}
],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment