Skip to content

Commit

Permalink
Merge pull request #183 from oasisprotocol/matevz/deps/golangci-lint
Browse files Browse the repository at this point in the history
deps: Bump golangci-lint
  • Loading branch information
matevz authored Dec 21, 2023
2 parents 6ca8b3d + c3464e7 commit 9c9bf7b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
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

0 comments on commit 9c9bf7b

Please sign in to comment.