From bd3ce2ba32c569bf1a55e999d8e09f1bf043f6b1 Mon Sep 17 00:00:00 2001 From: DNEGEL3125 <2839212140@qq.com> Date: Wed, 12 Nov 2025 10:01:15 +0800 Subject: [PATCH] chore: update golangci-lint config file to v2 --- .golangci.yaml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index 1de71ad8..23f8c5b9 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -1,17 +1,18 @@ +version: "2" linters: - disable-all: true + default: none enable: - - gofumpt - staticcheck - govet - - gci -linters-settings: - gci: - custom-order: true - sections: - - standard - - prefix(github.com/metacubex/mihomo) - - default - staticcheck: - go: '1.19' +formatters: + enable: + - gofumpt + - gci + settings: + gci: + custom-order: true + sections: + - standard + - prefix(github.com/metacubex/mihomo) + - default