status-go/.golangci.yml
richΛrd ba5ed725ce
waku2: static shards (#3944)
- use protected topics for communities
- associate chats to pubsub topics and populate these depending if the chat belongs to a community or not
- mailserver functions should be aware of pubsub topics
- generate private key for pubsub topic protection when creating a community
- add shard cluster and index to communities
- setup shards for existing communities
- distribute pubsubtopic password
- fix: do not send the requests to join and cancel in the protected topic
- fix: undefined shard values for backward compatibility
- refactor: use shard message in protobuffers
2023-10-12 15:21:49 -04:00

80 lines
1.6 KiB
YAML

run:
concurrency: 4
deadline: 1m
issues-exit-code: 1
modules-download-mode: vendor
tests: true
skip-dirs:
- static
- vendor
skip-files:
- bindata.go
- .*_mock.go
- contracts/
- eth-node/crypto/ecies/ # copied
- eth-node/keystore/ # copied
output:
format: colored-line-number
print-issued-lines: true
print-linter-name: true
linters-settings:
errcheck:
check-type-assertions: false
check-blank: false
govet:
check-shadowing: false
golint:
min-confidence: 0.8
gofmt:
simplify: true
goimports:
local-prefixes: github.com/ethereum/go-ethereum,github.com/status-im/status-go,github.com/waku-org/go-waku
maligned:
suggest-new: true
dupl:
threshold: 50
goconst:
min-len: 3
min-occurrences: 2
linters:
disable-all: true
enable:
- deadcode
- errcheck
- gosec
- goconst
- goimports
- golint
- govet
- ineffassign
- megacheck
- misspell
- structcheck
# - typecheck
- unconvert
- varcheck
fast: false
issues:
exclude:
- "composite literal uses unkeyed fields" # govet
- "G304: Potential file inclusion via variable" # gosec
- "G104: Errors unhandled." #gosec
- "lib._Ctype_char, which can be annoying to use" # golint
exclude-rules:
- path: eth-node/keystore/passphrase\.go
text: "make it a constant"
linters:
- goconst
- path: protocol/message_handler\.go
text: "make it a constant"
linters:
- goconst
- path: protocol/.*_test\.go
text: "make it a constant"
linters:
- goconst