mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-10-31 22:40:01 +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 changed files with 26 additions and 1 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -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
|
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