Skip to content
Merged
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
42 changes: 27 additions & 15 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ linters:
# - gochecknoinits
- goconst
- gocritic
- gomodguard
- gomodguard_v2
Comment thread
coderabbitai[bot] marked this conversation as resolved.
- goprintffuncname
- gosec
- govet
Expand Down Expand Up @@ -79,27 +79,30 @@ linters:
check:
- switch
- map
goconst:
# Map/composite-literal keys repeat by nature (log attribute names, test
# tables); they are not extractable constants.
ignore-map-keys: true
gocritic:
settings:
captLocal:
paramsOnly: false
underef:
skipRecvDeref: false
gomodguard:
gomodguard_v2:
blocked:
modules:
- github.com/golang/protobuf:
recommendations:
- google.golang.org/protobuf
reason: see https://developers.google.com/protocol-buffers/docs/reference/go/faq#modules
- github.com/satori/go.uuid:
recommendations:
- github.com/google/uuid
reason: satori's package is not maintained
- github.com/gofrs/uuid:
recommendations:
- github.com/google/uuid
reason: gofrs' package is not go module
- module: github.com/golang/protobuf
recommendations:
- google.golang.org/protobuf
reason: see https://developers.google.com/protocol-buffers/docs/reference/go/faq#modules
- module: github.com/satori/go.uuid
recommendations:
- github.com/google/uuid
reason: satori's package is not maintained
- module: github.com/gofrs/uuid
recommendations:
- github.com/google/uuid
reason: gofrs' package is not go module
gosec:
excludes:
- G115
Expand Down Expand Up @@ -207,6 +210,15 @@ linters:
linters:
- nolintlint
text: "exhaustive"
# goconst: CLI table-column headers and other presentation strings
- path: otdfctl/
linters:
- goconst
# goconst: integration-test fixtures that escape the _test.go rule above
# only because of their filenames
- path: service/entityresolution/integration/
linters:
- goconst
paths:
- .*\.pb\.go
- .*\.pb\.gw.go
Expand Down
Loading