From d0f43e1497325a5aafd915771c5da5d99f2c7ead Mon Sep 17 00:00:00 2001 From: Pavel Boldyrev <627562+bpg@users.noreply.github.com> Date: Wed, 6 Dec 2023 16:36:54 -0500 Subject: [PATCH] chore: configure vscode's linter to use proper .golangci.yml file (#774) Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com> --- .golangci.yml | 7 ------- .vscode/settings.json | 14 ++++++++++++-- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 19d834be..d4ba08b2 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -26,10 +26,6 @@ issues: linters: - lll linters-settings: - nolintlint: - # Disable to ensure that nolint directives don't have a leading space. - # Default is true. - allow-leading-space: false exhaustive: default-signifies-exhaustive: true govet: @@ -48,9 +44,6 @@ linters-settings: statements: 60 errcheck: check-blank: true - ignoretests: true - revive: - exported: ["checkPrivateReceivers"] linters: enable-all: true disable: diff --git a/.vscode/settings.json b/.vscode/settings.json index f25b8d41..e2db3ac1 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,13 +1,23 @@ { "git.alwaysSignOff": true, "cSpell.words": [ + "CLRF", "iothread", + "keyctl", + "proxmoxtf", "qcow", - "virtio" + "rootfs", + "unmanaged", + "virtio", + "VLANID", + "vmbr", + "VMID" ], "go.lintTool": "golangci-lint", "go.lintFlags": [ - "--fast", + "--config=${workspaceFolder}/.golangci.yml", + "--fast" ], + "go.lintOnSave": "workspace", "go.testEnvFile": "${workspaceFolder}/test.env", }