From d00c2a073ea297c54139033a2433f897d0afaf24 Mon Sep 17 00:00:00 2001 From: feistel <6742251-feistel@users.noreply.gitlab.com> Date: Wed, 15 Dec 2021 20:27:49 +0100 Subject: build: replace golint with revive and staticcheck --- .golangci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to '.golangci.yml') diff --git a/.golangci.yml b/.golangci.yml index 33467c49..c9fc0444 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -37,6 +37,12 @@ linters-settings: min-occurrences: 3 goimports: local-prefixes: gitlab.com/gitlab-org/gitlab-pages + staticcheck: + # Select the Go version to target. + # Default: 1.13 + go: "1.16" + # https://staticcheck.io/docs/options#checks + checks: [ "all" ] linters: disable-all: true @@ -49,12 +55,13 @@ linters: - goconst - gocyclo - goimports - - golint - gosimple - govet - gosec - ineffassign - misspell + - revive + - staticcheck - structcheck - typecheck - unconvert -- cgit v1.2.3