Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfeistel <6742251-feistel@users.noreply.gitlab.com>2021-12-15 22:27:49 +0300
committerJaime Martinez <jmartinez@gitlab.com>2022-02-02 02:20:24 +0300
commitd00c2a073ea297c54139033a2433f897d0afaf24 (patch)
tree0935323e3db39bbde08e7a078a95bb36d3264abd
parent03de582b06f276f18e8df0e6f29735119498880d (diff)
build: replace golint with revive and staticcheck
-rw-r--r--.golangci.yml9
1 files changed, 8 insertions, 1 deletions
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