VSCode development container changes

- SSH bind mount as read write
- More Golang linters
This commit is contained in:
Quentin McGaw
2020-10-13 01:10:22 +00:00
parent cd2d3c46cc
commit 860bc02e2e
2 changed files with 52 additions and 4 deletions

View File

@@ -46,14 +46,24 @@
"go.lintFlags": [
"--fast",
"--enable",
"rowserrcheck",
"asciicheck",
"--enable",
"bodyclose",
"--enable",
"deadcode",
"--enable",
"dogsled",
"--enable",
"dupl",
"--enable",
"errcheck",
"--enable",
"exhaustive",
"--enable",
"exportloopref",
"--enable",
"gci",
"--enable",
"gochecknoglobals",
"--enable",
"gochecknoinits",
@@ -66,29 +76,67 @@
"--enable",
"gocyclo",
"--enable",
"godot",
"--enable",
"goerr113",
"--enable",
"goheader",
"--enable",
"goimports",
"--enable",
"golint",
"--enable",
"gomnd",
"--enable",
"goprintffuncname",
"--enable",
"gosec",
"--enable",
"gosimple",
"--enable",
"govet",
"--enable",
"ineffassign",
"--enable",
"interfacer",
"--enable",
"lll",
"--enable",
"maligned",
"--enable",
"misspell",
"--enable",
"nakedret",
"--enable",
"nestif",
"--enable",
"noctx",
"--enable",
"nolintlint",
"--enable",
"prealloc",
"--enable",
"rowserrcheck",
"--enable",
"scopelint",
"--enable",
"sqlclosecheck",
"--enable",
"staticcheck",
"--enable",
"structcheck",
"--enable",
"typecheck",
"--enable",
"unconvert",
"--enable",
"unparam",
"--enable",
"whitespace"
"unused",
"--enable",
"varcheck",
"--enable",
"whitespace",
],
// Golang on save
"go.buildOnSave": "workspace",

View File

@@ -5,8 +5,8 @@ services:
image: qmcgaw/godevcontainer
volumes:
- ../:/workspace
- ~/.ssh:/home/vscode/.ssh:ro
- ~/.ssh:/root/.ssh:ro
- ~/.ssh:/home/vscode/.ssh
- ~/.ssh:/root/.ssh
- /var/run/docker.sock:/var/run/docker.sock
cap_add:
- SYS_PTRACE