From 0c5300b34f9e50b081ad707a94ae91b073a52ce1 Mon Sep 17 00:00:00 2001 From: kevin Date: Sat, 30 Oct 2021 19:11:14 +0800 Subject: [PATCH] ci: add golangci --- .golangci.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .golangci.yaml diff --git a/.golangci.yaml b/.golangci.yaml new file mode 100644 index 0000000..4460460 --- /dev/null +++ b/.golangci.yaml @@ -0,0 +1,21 @@ +run: + skip-dirs: + - .*~ + - data + skip-files: + - ".*.my.go$" + - _test.go +linters-settings: + errcheck: + check-type-assertions: true + check-blank: false + lll: + line-length: 240 + godox: + keywords: + - BUG + - FIXME + - OPTIMIZE + - HACK +linters: + enable-all: true