mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-22 11:46:40 +00:00
[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
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -21,3 +21,6 @@ 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
|
16
.vscode/launch.json
vendored
Normal file
16
.vscode/launch.json
vendored
Normal file
|
@ -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}"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
6
.vscode/settings.json
vendored
Normal file
6
.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"go.lintTool":"golangci-lint",
|
||||||
|
"go.lintFlags": [
|
||||||
|
"--fast"
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in a new issue