[feature] add vscode workspace config for linting + debugging (#588)
* vscode workspace config for debug run + linting * ignore debug build file
This commit is contained in:
parent
6f6e89e271
commit
4e6625ee2d
|
@ -20,4 +20,7 @@ dist/
|
||||||
web/assets/swagger.yaml
|
web/assets/swagger.yaml
|
||||||
|
|
||||||
# exludes docker-volume from exemple/docker-compose
|
# exludes docker-volume from exemple/docker-compose
|
||||||
example/docker-compose/docker-volume
|
example/docker-compose/docker-volume
|
||||||
|
|
||||||
|
# excludes debug build
|
||||||
|
cmd/gotosocial/__debug_bin
|
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "Launch Package",
|
||||||
|
"type": "go",
|
||||||
|
"request": "launch",
|
||||||
|
"mode": "auto",
|
||||||
|
"program": "${workspaceFolder}/cmd/gotosocial",
|
||||||
|
"args": [
|
||||||
|
"testrig", "start"
|
||||||
|
],
|
||||||
|
"cwd": "${workspaceFolder}"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"go.lintTool":"golangci-lint",
|
||||||
|
"go.lintFlags": [
|
||||||
|
"--fast"
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue