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:
parent
ae429148b5
commit
d0f43e1497
@ -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
14
.vscode/settings.json
vendored
@ -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",
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user