-
Notifications
You must be signed in to change notification settings - Fork 0
/
GoSublime.sublime-settings
50 lines (44 loc) · 1.82 KB
/
GoSublime.sublime-settings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{//"shell": "/usr/bin/sh",
"env": {"GOPATH": "$HOME/server", "PATH":"$PATH:$GOPATH"},
"on_save": [
{"cmd": "gs9o_open", "args": {
"run": [
"sh",
"go build errors ." //" && go test . -run NONEOFTHETESTSONDEFAULT -tags=unit"
// "go test -i && go vet && go test -c -o '/Users/jkoberg/TestBinaries/lastsave.test'"//" && gometalinter ."
] // && go test -tags integration -c -o '/Users/jkoberg/TestBinaries/integration.test'" // && go build . && go test -bench=. && go generate
}}
],
// "autocomplete_closures": false,
// "complete_builtins": false,
"fmt_cmd": ["goimports"],
// "9o_show_end": true,
// "comp_lint_enabled": true,
// "lint_enabled": false,
"shell": ["/bin/bash", "--noprofile", "-c", "$CMD"],
"ipc_timeout": 10,
// "on_save": [
// {"cmd": "gs_comp_lint"},
// ],
// enable comp-lint, this will effectively disable the live linter
// "comp_lint_enabled": true,
// // list of commands to run
// "comp_lint_commands": [
// // run `golint` on all files in the package
// // "shell":true is required in order to run the command through your shell (to expand `*.go`)
// // also see: the documentation for the `shell` setting in the default settings file ctrl+dot,ctrl+4
// {"cmd": ["golint *.go"], "shell": true},
// // 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"}
// ]
}
// && go test -bench=.