From d666bbdc77f548fd602a51eddeaaa0cd32a5712c Mon Sep 17 00:00:00 2001 From: Michael McLoughlin Date: Fri, 9 Feb 2024 11:30:42 -0800 Subject: [PATCH] all: upgrade to golangci-lint v1.56.1 (#18) --- .golangci.yml | 8 +++++--- script/bootstrap | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 492e10a..caf626c 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -44,9 +44,11 @@ linters: linters-settings: depguard: - list-type: whitelist - packages: - - github.com/mmcloughlin/profile + rules: + main: + allow: + - github.com/mmcloughlin/profile + - $gostd lll: line-length: 140 diff --git a/script/bootstrap b/script/bootstrap index cdc0a66..227ebef 100755 --- a/script/bootstrap +++ b/script/bootstrap @@ -3,7 +3,7 @@ set -exuo pipefail # Install golangci-lint -golangci_lint_version='v1.51.2' +golangci_lint_version='v1.56.1' golangci_install_script="https://raw.githubusercontent.com/golangci/golangci-lint/${golangci_lint_version}/install.sh" curl -sfL "${golangci_install_script}" | sh -s -- -b "$GOPATH/bin" "${golangci_lint_version}"