Last active
December 14, 2017 00:12
-
-
Save albrow/3ece4fd923c69c30be05 to your computer and use it in GitHub Desktop.
GoSublime Settings to Run go vet, errcheck, and go install
This file contains 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
Show hidden characters
{ | |
// 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