From 6697f1dfb9554d90ea83500d990907e65f722c69 Mon Sep 17 00:00:00 2001 From: Zachary Blasczyk Date: Tue, 3 Sep 2024 16:41:16 -0500 Subject: [PATCH] chore: Add vscode linting config --- .vscode/settings.json | 11 ++++++++++- golangci.yaml | 3 +++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 golangci.yaml diff --git a/.vscode/settings.json b/.vscode/settings.json index 0967ef4..874e58d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1 +1,10 @@ -{} +{ + "go.lintTool": "golangci-lint", + "go.lintFlags": ["run", "--enable=errcheck"], + "go.toolsEnvVars": { + "GO111MODULE": "on" + }, + "go.lintOnSave": "package", + "go.vetOnSave": "package", + "go.useLanguageServer": true +} diff --git a/golangci.yaml b/golangci.yaml new file mode 100644 index 0000000..6bbd605 --- /dev/null +++ b/golangci.yaml @@ -0,0 +1,3 @@ +linters: + enable: + - errcheck