Skip to content

Commit 265e2c9

Browse files
committed
add tasks.json for Go testing and linting
1 parent 3383d73 commit 265e2c9

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.vscode/tasks.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "Run Go Tests",
6+
"type": "shell",
7+
"command": "go test ./...",
8+
"group": "test",
9+
"problemMatcher": ["$go"],
10+
"presentation": {
11+
"reveal": "always"
12+
}
13+
},
14+
{
15+
"label": "Go Mod Tidy, Lint & Fmt",
16+
"type": "shell",
17+
"command": "go mod tidy && golangci-lint run && golangci-lint fmt ./...",
18+
"group": "build",
19+
"problemMatcher": ["$go"],
20+
"presentation": {
21+
"reveal": "always"
22+
}
23+
}
24+
]
25+
}

0 commit comments

Comments
 (0)