From 6547fc5d192f305bda1420c6cb9fd37710c570a3 Mon Sep 17 00:00:00 2001 From: Han Cen Date: Thu, 17 Nov 2022 20:15:27 +0800 Subject: [PATCH] Update golang ci config --- .drone/test.yaml | 4 ++-- HTMLConverter/.golangci.yml | 13 +++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.drone/test.yaml b/.drone/test.yaml index 2066220..3ad556c 100644 --- a/.drone/test.yaml +++ b/.drone/test.yaml @@ -4,10 +4,10 @@ name: test steps: - name: test go - image: golangci/golangci-lint + image: golang commands: - cd HTMLConverter - - golangci-lint run + - go test trigger: event: diff --git a/HTMLConverter/.golangci.yml b/HTMLConverter/.golangci.yml index ec56232..9e06493 100644 --- a/HTMLConverter/.golangci.yml +++ b/HTMLConverter/.golangci.yml @@ -4,12 +4,25 @@ output: linters: enable-all: true disable: + - dupword + - exhaustruct + - exhaustivestruct - funlen + - gci - gochecknoglobals - gocognit + - goimports + - gofmt + - gofumpt - gomnd - maligned + - nlreturn + - nolintlint + - nosnakecase + - paralleltest + - revive - testpackage + - varnamelen - wsl linters-settings: