0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-06-30 02:31:10 +00:00

chore: configure vscode's linter to use proper .golangci.yml file (#774)

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
This commit is contained in:
Pavel Boldyrev 2023-12-06 16:36:54 -05:00 committed by GitHub
parent ae429148b5
commit d0f43e1497
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 9 deletions

View File

@ -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:

14
.vscode/settings.json vendored
View File

@ -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",
}