From a7623eaf4ae3b4aa9d223b788ae7a5d8f66e287b Mon Sep 17 00:00:00 2001 From: vearne Date: Fri, 11 Oct 2024 11:01:22 +0800 Subject: [PATCH] update .golangci.yml --- .golangci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 8d1b1fa..c33a0e0 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,6 +1,6 @@ linters: - disable-all: true # 关闭其他linter - enable: # 下面是开启的linter列表,之后的英文注释介绍了相应linter的功能 + disable-all: true # Turn off other linters + enable: - errcheck # Errcheck is a program for checking for unchecked errors in go programs. These unchecked errors can be critical bugs in some cases - gosimple # Linter for Go source code that specializes in simplifying a code - govet # Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string @@ -10,7 +10,7 @@ linters: - copyloopvar # Detects places where loop variables are copied. linters-settings: - govet: # 对于linter govet,我们手动开启了它的某些扫描规则 + govet: # For linter govet, we manually enabled some of its scanning rules enable-all: true disable: - fieldalignment