mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-07-01 11:02:59 +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:
|
linters:
|
||||||
- lll
|
- lll
|
||||||
linters-settings:
|
linters-settings:
|
||||||
nolintlint:
|
|
||||||
# Disable to ensure that nolint directives don't have a leading space.
|
|
||||||
# Default is true.
|
|
||||||
allow-leading-space: false
|
|
||||||
exhaustive:
|
exhaustive:
|
||||||
default-signifies-exhaustive: true
|
default-signifies-exhaustive: true
|
||||||
govet:
|
govet:
|
||||||
@ -48,9 +44,6 @@ linters-settings:
|
|||||||
statements: 60
|
statements: 60
|
||||||
errcheck:
|
errcheck:
|
||||||
check-blank: true
|
check-blank: true
|
||||||
ignoretests: true
|
|
||||||
revive:
|
|
||||||
exported: ["checkPrivateReceivers"]
|
|
||||||
linters:
|
linters:
|
||||||
enable-all: true
|
enable-all: true
|
||||||
disable:
|
disable:
|
||||||
|
14
.vscode/settings.json
vendored
14
.vscode/settings.json
vendored
@ -1,13 +1,23 @@
|
|||||||
{
|
{
|
||||||
"git.alwaysSignOff": true,
|
"git.alwaysSignOff": true,
|
||||||
"cSpell.words": [
|
"cSpell.words": [
|
||||||
|
"CLRF",
|
||||||
"iothread",
|
"iothread",
|
||||||
|
"keyctl",
|
||||||
|
"proxmoxtf",
|
||||||
"qcow",
|
"qcow",
|
||||||
"virtio"
|
"rootfs",
|
||||||
|
"unmanaged",
|
||||||
|
"virtio",
|
||||||
|
"VLANID",
|
||||||
|
"vmbr",
|
||||||
|
"VMID"
|
||||||
],
|
],
|
||||||
"go.lintTool": "golangci-lint",
|
"go.lintTool": "golangci-lint",
|
||||||
"go.lintFlags": [
|
"go.lintFlags": [
|
||||||
"--fast",
|
"--config=${workspaceFolder}/.golangci.yml",
|
||||||
|
"--fast"
|
||||||
],
|
],
|
||||||
|
"go.lintOnSave": "workspace",
|
||||||
"go.testEnvFile": "${workspaceFolder}/test.env",
|
"go.testEnvFile": "${workspaceFolder}/test.env",
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user