pin golangci-lint version to latest available, fix reported errors

This commit is contained in:
Dmitry Verkhoturov
2024-05-09 23:46:41 +02:00
committed by Umputun
parent cbed6ed705
commit 30173d599c
15 changed files with 79 additions and 72 deletions

View File

@@ -1,17 +1,10 @@
run:
timeout: 5m
output:
format: tab
skip-dirs:
- vendor
linters-settings:
govet:
check-shadowing: true
golint:
min-confidence: 0.1
maligned:
suggest-new: true
enable:
- shadow
goconst:
min-len: 2
min-occurrences: 2
@@ -33,13 +26,12 @@ linters-settings:
linters:
enable:
- megacheck
- staticcheck
- revive
- govet
- unconvert
- megacheck
- unused
- gas
- gosec
- gocyclo
- dupl
- misspell
@@ -57,6 +49,8 @@ linters:
disable-all: true
issues:
exclude-dirs:
- vendor
exclude-rules:
- text: "at least one file in a package should have a package comment"
linters: