From f40ba5d46ff53f6a75a1a1c6e6702fa13e9278b6 Mon Sep 17 00:00:00 2001 From: Mihail Stoykov Date: Mon, 29 Apr 2024 17:04:44 +0300 Subject: [PATCH 1/2] golangci-lint: deadline is now called timeout, for years --- .golangci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index 9c4457ed8c8..9e1d6341860 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,7 +1,7 @@ # v1.57.2 # Please don't remove the first line. It uses in CI to determine the golangci version run: - deadline: 5m + timeout: 5m issues: # Maximum issues count per one linter. Set to 0 to disable. Default is 50. From e9408eee9c764e8d2f6949ea18d703c6faa1bcc5 Mon Sep 17 00:00:00 2001 From: Mihail Stoykov Date: Mon, 29 Apr 2024 17:11:40 +0300 Subject: [PATCH 2/2] golangci-lint: drop configs that are not longer available --- .golangci.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 9e1d6341860..b8b20f5c6b5 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -43,17 +43,10 @@ issues: text: 'use of `os\.(SyscallError|Signal|Interrupt)` forbidden' 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: - shadow: true cyclop: max-complexity: 25 - maligned: - suggest-new: true dupl: threshold: 150 goconst: