VSCode development container changes
- SSH directory bind mounted as read write - Remove linters list from devcontainer, use workspace ones instead
This commit is contained in:
@@ -43,49 +43,6 @@
|
|||||||
"usePlaceholders": false
|
"usePlaceholders": false
|
||||||
},
|
},
|
||||||
"go.lintTool": "golangci-lint",
|
"go.lintTool": "golangci-lint",
|
||||||
"go.lintFlags": [
|
|
||||||
"--fast",
|
|
||||||
"--enable",
|
|
||||||
"staticcheck",
|
|
||||||
"--enable",
|
|
||||||
"bodyclose",
|
|
||||||
"--enable",
|
|
||||||
"dogsled",
|
|
||||||
"--enable",
|
|
||||||
"gochecknoglobals",
|
|
||||||
"--enable",
|
|
||||||
"gochecknoinits",
|
|
||||||
"--enable",
|
|
||||||
"gocognit",
|
|
||||||
"--enable",
|
|
||||||
"goconst",
|
|
||||||
"--enable",
|
|
||||||
"gocritic",
|
|
||||||
"--enable",
|
|
||||||
"gocyclo",
|
|
||||||
"--enable",
|
|
||||||
"golint",
|
|
||||||
"--enable",
|
|
||||||
"gosec",
|
|
||||||
"--enable",
|
|
||||||
"interfacer",
|
|
||||||
"--enable",
|
|
||||||
"maligned",
|
|
||||||
"--enable",
|
|
||||||
"misspell",
|
|
||||||
"--enable",
|
|
||||||
"nakedret",
|
|
||||||
"--enable",
|
|
||||||
"prealloc",
|
|
||||||
"--enable",
|
|
||||||
"scopelint",
|
|
||||||
"--enable",
|
|
||||||
"unconvert",
|
|
||||||
"--enable",
|
|
||||||
"unparam",
|
|
||||||
"--enable",
|
|
||||||
"whitespace"
|
|
||||||
],
|
|
||||||
// Golang on save
|
// Golang on save
|
||||||
"go.buildOnSave": "workspace",
|
"go.buildOnSave": "workspace",
|
||||||
"go.lintOnSave": "workspace",
|
"go.lintOnSave": "workspace",
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ services:
|
|||||||
image: qmcgaw/godevcontainer
|
image: qmcgaw/godevcontainer
|
||||||
volumes:
|
volumes:
|
||||||
- ../:/workspace
|
- ../:/workspace
|
||||||
- ~/.ssh:/home/vscode/.ssh:ro
|
- ~/.ssh:/home/vscode/.ssh
|
||||||
- ~/.ssh:/root/.ssh:ro
|
- ~/.ssh:/root/.ssh
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
cap_add:
|
cap_add:
|
||||||
- SYS_PTRACE
|
- SYS_PTRACE
|
||||||
|
|||||||
Reference in New Issue
Block a user