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
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- `[ci]` Fix golangci-lint config: remove deprecated linter settings,
add missing depguard allowlist entries, and regenerate mocks.
([#29](https://github.com/crypto-org-chain/cometbft/pull/29))
14 changes: 10 additions & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,8 @@ issues:
linters-settings:
dogsled:
max-blank-identifiers: 3
golint:
min-confidence: 0
goconst:
ignore-tests: true
maligned:
suggest-new: true
misspell:
locale: US
depguard:
Expand Down Expand Up @@ -77,6 +73,12 @@ linters-settings:
- github.com/stretchr/testify/require
- github.com/syndtr/goleveldb
- github.com/decred/dcrd/dcrec/secp256k1/v4
- golang.org/x/crypto
- golang.org/x/net
- golang.org/x/sync
- gonum.org/v1/gonum
- google.golang.org/grpc
- google.golang.org/protobuf
test:
files:
- "$test"
Expand All @@ -98,6 +100,10 @@ linters-settings:
- github.com/spf13
- github.com/stretchr/testify
- github.com/decred/dcrd/dcrec/secp256k1/v4
- golang.org/x/crypto
- golang.org/x/net
- google.golang.org/grpc
- google.golang.org/protobuf

revive:
enable-all-rules: true
Expand Down
20 changes: 10 additions & 10 deletions abci/client/mocks/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion evidence/mocks/block_store.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion light/detector.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
// If there are no conflicting headers, the light client deems the verified target header
// trusted and saves it to the trusted store.
func (c *Client) detectDivergence(ctx context.Context, primaryTrace []*types.LightBlock, now time.Time) error {
if primaryTrace == nil || len(primaryTrace) < 2 {
if len(primaryTrace) < 2 {
return errors.New("nil or single block primary trace")
}
var (
Expand Down
2 changes: 1 addition & 1 deletion light/rpc/mocks/light_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions mempool/mocks/mempool.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading