Skip to content

Commit 53c0d8c

Browse files
authored
use gci lint + install tools (#1691)
1 parent 6231a15 commit 53c0d8c

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.devcontainer/devcontainer.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,22 @@
44
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
55
},
66
"runArgs": ["--name", "datadog-operator-devenv", "-w", "/workspaces/datadog-operator"],
7-
"postStartCommand": ["git", "config", "--global", "--add", "safe.directory", "/workspaces/datadog-operator"]
7+
"postStartCommand": "git config --global --add safe.directory /workspaces/datadog-operator && make install-tools",
8+
"customizations": {
9+
"vscode": {
10+
"settings": {
11+
"go.lintTool": "golangci-lint",
12+
"go.lintOnSave": "package",
13+
"go.lintFlags": [
14+
"--config=/workspaces/datadog-operator/.golangci.toml"
15+
],
16+
"[go]": {
17+
"editor.formatOnSave": true
18+
}
19+
},
20+
"extensions": [
21+
"golang.Go"
22+
]
23+
}
24+
},
825
}

0 commit comments

Comments
 (0)