From 3da76ed49eb8d149c795d1823de07fe96344fe56 Mon Sep 17 00:00:00 2001 From: Denis Bilenko Date: Tue, 3 Dec 2024 14:50:25 +0100 Subject: [PATCH] add .golangci.yaml --- .golangci.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .golangci.yaml diff --git a/.golangci.yaml b/.golangci.yaml new file mode 100644 index 0000000000..bc91ef33c1 --- /dev/null +++ b/.golangci.yaml @@ -0,0 +1,18 @@ +linters: + # Disable all linters. + # Default: false + disable-all: true + # Enable specific linter + # https://golangci-lint.run/usage/linters/#enabled-by-default + enable: + #- errcheck + - gosimple + #- govet + - ineffassign + - staticcheck + - unused +issues: + exclude-dirs-use-default: false # recommended by docs https://golangci-lint.run/usage/false-positives/ + exclude: + - "SA1019: tfexec.State is deprecated: The -state CLI flag is a legacy flag and should not be used. If you need a different state file for every run, you can instead use the local backend. See https://github.com/hashicorp/terraform/issues/25920#issuecomment-676560799" + - "SA1012: do not pass a nil Context, even if a function permits it; pass context.TODO if you are unsure about which Context to use"