Last active
December 14, 2017 00:12
-
-
Save albrow/3ece4fd923c69c30be05 to your computer and use it in GitHub Desktop.
Revisions
-
albrow revised this gist
May 6, 2015 . 1 changed file with 19 additions and 12 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -4,21 +4,28 @@ // 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" } ], } -
albrow created this gist
May 5, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ { // enable comp-lint, this will effectively disable the live linter "comp_lint_enabled": true, // list of commands to run "comp_lint_commands": [ // run errcheck on the package {"cmd": ["errcheck"]}, // run go vet on the package {"cmd": ["go", "vet"]}, // run `go install` on the package. GOBIN is set, // so `main` packages shouldn't result in the installation of a binary {"cmd": ["go", "install"]} ], "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"} ], }