Skip to content

Commit

Permalink
updates devcontainer with code coverage extension
Browse files Browse the repository at this point in the history
  • Loading branch information
djschleen authored Feb 29, 2024
1 parent 648d1e9 commit e870823
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 1,272 deletions.
131 changes: 63 additions & 68 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,70 +1,65 @@
{
"name": "devcontainer-test",
"image": "mcr.microsoft.com/devcontainers/go:1-1.22-bookworm",
"features": {
"ghcr.io/devcontainers-contrib/features/starship:1": {},
"ghcr.io/azutake/devcontainer-features/go-packages-install:0": {
"packages": [
"github.com/jandelgado/gcov2lcov@latest",
"github.com/kisielk/errcheck@latest",
"github.com/fzipp/gocyclo/cmd/gocyclo@latest",
"golang.org/x/vuln/cmd/govulncheck@latest",
"honnef.co/go/tools/cmd/staticcheck@latest"
]
}
},
"customizations": {
"vscode": {
"settings": {
"files.eol": "\n",
"terminal.integrated.fontFamily": "DroidSansMNerdFont-Regular",
"editor.formatOnSave": true,
"go.buildTags": "",
"go.toolsEnvVars": {
"CGO_ENABLED": "0"
},
"go.useLanguageServer": true,
"go.testEnvVars": {
"CGO_ENABLED": "1"
},
"go.testFlags": [
"-v",
"-race"
],
"go.testTimeout": "10s",
"go.coverOnSingleTest": true,
"go.coverOnSingleTestFile": true,
"go.coverOnTestPackage": true,
"go.lintTool": "golangci-lint",
"go.lintOnSave": "package",
"[go]": {
"editor.codeActionsOnSave": {
"source.organizeImports": "always"
}
},
"gopls": {
"usePlaceholders": false,
"staticcheck": true,
"vulncheck": "Imports"
},
},
"extensions": [
"ms-vscode.go",
"golang.go",
"github.vscode-pull-request-github",
"github.vscode-github-actions",
"github.vscode-codeql",
"aleksandra.go-group-imports",
"oderwat.indent-rainbow",
"yzhang.markdown-all-in-one",
"quicktype.quicktype",
"jebbs.plantuml",
"foxundermoon.shell-format",
"ahebrank.yaml2json",
"defaltd.go-coverage-viewer",
"Gruntfuggly.todo-tree", // Highlights TODO comments"
]
}
},
"postCreateCommand": "go mod download && go mod tidy && mkdir -p ~/.local/share/fonts && cd ~/.local/share/fonts && curl -fLO https://github.com/ryanoasis/nerd-fonts/raw/HEAD/patched-fonts/DroidSansMono/DroidSansMNerdFont-Regular.otf"
"name": "devcontainer-test",
"image": "mcr.microsoft.com/devcontainers/go:1-1.22-bookworm",
"features": {
"ghcr.io/devcontainers-contrib/features/starship:1": {},
"ghcr.io/azutake/devcontainer-features/go-packages-install:0": {
"packages": [
"github.com/jandelgado/gcov2lcov@latest",
"github.com/kisielk/errcheck@latest",
"github.com/fzipp/gocyclo/cmd/gocyclo@latest",
"golang.org/x/vuln/cmd/govulncheck@latest",
"honnef.co/go/tools/cmd/staticcheck@latest"
]
}
},
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.fontFamily": "DroidSansMNerdFont-Regular",
"editor.formatOnSave": true,
"go.buildTags": "",
"go.toolsEnvVars": {
"CGO_ENABLED": "0"
},
"go.useLanguageServer": true,
"go.testEnvVars": {
"CGO_ENABLED": "1"
},
"go.testFlags": [
"-v",
"-race"
],
"go.testTimeout": "10s",
"go.coverOnSingleTest": true,
"go.coverOnSingleTestFile": true,
"go.coverOnTestPackage": true,
"go.lintTool": "golangci-lint",
"go.lintOnSave": "package",
"[go]": {
"editor.codeActionsOnSave": {
"source.organizeImports": "always"
}
}
},
"extensions": [
"ms-vscode.go",
"golang.go",
"github.vscode-pull-request-github",
"github.vscode-github-actions",
"aleksandra.go-group-imports",
"oderwat.indent-rainbow",
"yzhang.markdown-all-in-one",
"quicktype.quicktype",
"jebbs.plantuml",
"foxundermoon.shell-format",
"ahebrank.yaml2json",
"amazonwebservices.aws-toolkit-vscode",
"markis.code-coverage",
//"defaltd.go-coverage-viewer",
"Gruntfuggly.todo-tree" // Highlights TODO comments"
]
}
},
"postCreateCommand": "go mod download && go mod tidy && mkdir -p ~/.local/share/fonts && cd ~/.local/share/fonts && curl -fLO https://github.com/ryanoasis/nerd-fonts/raw/HEAD/patched-fonts/DroidSansMono/DroidSansMNerdFont-Regular.otf"
}
Loading

0 comments on commit e870823

Please sign in to comment.