Skip to content

Commit 6531824

Browse files
committed
VSCode workplace settings
1 parent b41251b commit 6531824

File tree

1 file changed

+88
-0
lines changed

1 file changed

+88
-0
lines changed

.vscode/settings.json

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
{
2+
// General settings
3+
"files.eol": "\n",
4+
// Docker
5+
"remote.extensionKind": {
6+
"ms-azuretools.vscode-docker": "workspace"
7+
},
8+
// Golang general settings
9+
"go.useLanguageServer": true,
10+
"go.autocompleteUnimportedPackages": true,
11+
"go.gotoSymbol.includeImports": true,
12+
"go.gotoSymbol.includeGoroot": true,
13+
"gopls": {
14+
"completeUnimported": true,
15+
"deepCompletion": true,
16+
"usePlaceholders": false
17+
},
18+
"go.lintTool": "golangci-lint",
19+
"go.lintFlags": [
20+
"--fast",
21+
"--enable",
22+
"rowserrcheck",
23+
"--enable",
24+
"bodyclose",
25+
"--enable",
26+
"dogsled",
27+
"--enable",
28+
"dupl",
29+
"--enable",
30+
"gochecknoglobals",
31+
"--enable",
32+
"gochecknoinits",
33+
"--enable",
34+
"gocognit",
35+
"--enable",
36+
"goconst",
37+
"--enable",
38+
"gocritic",
39+
"--enable",
40+
"gocyclo",
41+
"--enable",
42+
"goimports",
43+
"--enable",
44+
"golint",
45+
"--enable",
46+
"gosec",
47+
"--enable",
48+
"interfacer",
49+
"--enable",
50+
"maligned",
51+
"--enable",
52+
"misspell",
53+
"--enable",
54+
"nakedret",
55+
"--enable",
56+
"prealloc",
57+
"--enable",
58+
"scopelint",
59+
"--enable",
60+
"unconvert",
61+
"--enable",
62+
"unparam",
63+
"--enable",
64+
"whitespace"
65+
],
66+
// Golang on save
67+
"go.buildOnSave": "workspace",
68+
"go.lintOnSave": "workspace",
69+
"go.vetOnSave": "workspace",
70+
"editor.formatOnSave": true,
71+
"[go]": {
72+
"editor.codeActionsOnSave": {
73+
"source.organizeImports": true
74+
}
75+
},
76+
// Golang testing
77+
"go.toolsEnvVars": {
78+
"GOFLAGS": "-tags="
79+
},
80+
"gopls.env": {
81+
"GOFLAGS": "-tags="
82+
},
83+
"go.testEnvVars": {},
84+
"go.testFlags": [
85+
"-v"
86+
],
87+
"go.testTimeout": "600s"
88+
}

0 commit comments

Comments
 (0)