gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 4e6625ee2d0ccd036626287e3a929f10fc109e40
parent 6f6e89e2715c9ecbadda6b8dbe5227995348dae8
Author: f0x52 <f0x@cthu.lu>
Date:   Wed,  8 Jun 2022 20:26:44 +0200

[feature] add vscode workspace config for linting + debugging (#588)

* vscode workspace config for debug run + linting

* ignore debug build file
Diffstat:
M.gitignore | 7+++++--
A.vscode/launch.json | 17+++++++++++++++++
A.vscode/settings.json | 7+++++++
3 files changed, 29 insertions(+), 2 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -20,4 +20,7 @@ dist/ web/assets/swagger.yaml # exludes docker-volume from exemple/docker-compose -example/docker-compose/docker-volume -\ No newline at end of file +example/docker-compose/docker-volume + +# excludes debug build +cmd/gotosocial/__debug_bin +\ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json @@ -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}" + } + ] +} +\ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "go.lintTool":"golangci-lint", + "go.lintFlags": [ + "--fast" + ] +} +\ No newline at end of file