From 6cd3c4c06f730c8ad461f43f0ee3b6b7be62734c Mon Sep 17 00:00:00 2001 From: Su Yang Date: Mon, 24 Jun 2024 23:28:51 +0800 Subject: [PATCH] chore: update linter --- .golangci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 6549414..4699305 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -35,5 +35,22 @@ linters: - whitespace - gofumpt +linters-settings: + depguard: + rules: + prevent_unmaintained_packages: + files: + - $all + - "!$test" + allow: + - github.com/gin-gonic/gin + - embed + - io/fs + - net/http + - os + - path + - strings + - fmt + run: timeout: 3m \ No newline at end of file