From fa90ec6f9a0284b4ec541d0c391a2e1a8bbcba1e Mon Sep 17 00:00:00 2001 From: Ankit Date: Sun, 7 Apr 2024 10:32:35 +0200 Subject: [PATCH] ci: Upgrade linter (#729) --- .golangci.yml | 7 ++----- Makefile | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 9206bc2e..c388da01 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,7 +1,5 @@ run: timeout: 5m - deadline: 5m - skip-dirs-use-default: true linters: disable-all: true enable: @@ -35,8 +33,7 @@ linters-settings: - name: package-comments disabled: true gomnd: - settings: - mnd: - ignored-numbers: 0,1,2,3 + ignored-numbers: ['0', '1', '2', '3'] issues: exclude-use-default: false + exclude-dirs-use-default: true diff --git a/Makefile b/Makefile index 220ca906..01e40d50 100644 --- a/Makefile +++ b/Makefile @@ -44,7 +44,7 @@ install: lint: @if ! command -v golangci-lint > /dev/null 2>&1; then \ curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | \ - sh -s -- -b "$$(go env GOPATH)/bin" v1.55.2 ; \ + sh -s -- -b "$$(go env GOPATH)/bin" v1.57.2 ; \ fi golangci-lint run ./...