From 4e6625ee2d0ccd036626287e3a929f10fc109e40 Mon Sep 17 00:00:00 2001 From: f0x52 Date: Wed, 8 Jun 2022 20:26:44 +0200 Subject: [PATCH] [feature] add vscode workspace config for linting + debugging (#588) * vscode workspace config for debug run + linting * ignore debug build file --- .gitignore | 5 ++++- .vscode/launch.json | 16 ++++++++++++++++ .vscode/settings.json | 6 ++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json diff --git a/.gitignore b/.gitignore index 0ccc883b2..b1f97a828 100644 --- 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 new file mode 100644 index 000000000..906262d2f --- /dev/null +++ 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 new file mode 100644 index 000000000..a0304179d --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "go.lintTool":"golangci-lint", + "go.lintFlags": [ + "--fast" + ] +} \ No newline at end of file