Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/.golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ linters:
- bodyclose
- errcheck
- goheader
- gosec
- govet
- ineffassign
- misspell
Expand All @@ -14,6 +15,16 @@ linters:
settings:
goheader:
template-path: copyright.tmpl
gosec:
excludes:
- G101
- G110
- G112
- G114
- G115
- G306
- G402
- G404
misspell:
locale: US,UK
staticcheck:
Expand All @@ -26,6 +37,11 @@ linters:
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- revive
text: "var-naming: avoid meaningless package names"
path: "(common/|controller/event/handler/util/|core/utils/|jobservice/common/utils/|pkg/permission/types/|pkg/quota/types/|server/middleware/util/|server/registry/util/|pkg/reg/util/)"
paths:
- third_party$
- builtin$
Expand Down
2 changes: 1 addition & 1 deletion src/common/utils/encrypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"crypto/sha1"
"crypto/sha1" // nolint:gosec // Required for PBKDF2 legacy compatibility
"crypto/sha256"
"encoding/base64"
"errors"
Expand Down
Loading