Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: Bump golangci-lint #183

Merged
merged 1 commit into from
Dec 21, 2023
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/ci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
# 'make lint-go'.
uses: golangci/[email protected]
with:
version: v1.52.0
version: v1.55
# Always run this step so that all linting errors can be seen at once.
if: always()
- name: Ensure a clean code checkout
Expand Down
21 changes: 21 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,27 @@ linters:
- whitespace

linters-settings:
depguard:
rules:
main:
files:
- $all
allow:
- $gostd
- github.com/oasisprotocol
- github.com/btcsuite/btcd
- github.com/adrg/xdg
- github.com/AlecAivazis/survey/v2
- github.com/ethereum/go-ethereum
- github.com/miguelmota/go-ethereum-hdwallet
- github.com/mitchellh/mapstructure
- github.com/olekukonko/tablewriter
- github.com/spf13/cobra
- github.com/spf13/pflag
- github.com/spf13/viper
- github.com/stretchr/testify
- github.com/tyler-smith/go-bip39
- github.com/zondax/ledger-go
exhaustive:
# Switch statements are to be considered exhaustive if a 'default' case is
# present, even if all enum members aren't listed in the switch.
Expand Down
2 changes: 1 addition & 1 deletion wallet/file/sr25519.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func newMasterKey(seed []byte) (sdkSignature.Signer, slip10.ChainCode, []byte, e
return splitDigest(I)
}

func newChildKey(kPar []byte, cPar slip10.ChainCode, index uint32) (sdkSignature.Signer, slip10.ChainCode, []byte, error) { //nolint: revive
func newChildKey(kPar []byte, cPar slip10.ChainCode, index uint32) (sdkSignature.Signer, slip10.ChainCode, []byte, error) {
if len(kPar) < memory.SeedSize {
return nil, slip10.ChainCode{}, nil, fmt.Errorf("slip10: invalid parent key")
}
Expand Down
Loading