From 6bec917301c9e6ff953a80da4a54a401b23f4b7a Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Mon, 8 Feb 2021 22:25:51 +0100 Subject: [PATCH] chore: update linter. (#1346) --- .github/workflows/main.yml | 2 +- .golangci.toml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 56a75e4a..21aacc29 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest env: GO_VERSION: 1.15 - GOLANGCI_LINT_VERSION: v1.34.0 + GOLANGCI_LINT_VERSION: v1.36.0 HUGO_VERSION: 0.54.0 SEIHON_VERSION: v0.5.1 CGO_ENABLED: 0 diff --git a/.golangci.toml b/.golangci.toml index 2c62819e..1129425a 100644 --- a/.golangci.toml +++ b/.golangci.toml @@ -45,6 +45,7 @@ "exhaustivestruct", # too many false-positive "makezero", # not relevant "forbidigo", # not relevant + "ifshort", # not relevant ] [issues] @@ -133,3 +134,9 @@ [[issues.exclude-rules]] path = "providers/dns/namecheap/namecheap_test.go" text = "cognitive complexity (\\d+) of func `TestDNSProvider_getHosts` is high" + [[issues.exclude-rules]] + path = "platform/tester/env_test.go" + linters = ["thelper"] + [[issues.exclude-rules]] + path = "providers/dns/oraclecloud/oraclecloud_test.go" + text = "SA1019: x509.EncryptPEMBlock is deprecated:"