Skip to content

Commit

Permalink
Merge pull request #7 from b00f/chore/deps
Browse files Browse the repository at this point in the history
chore(other): fix linting issues
  • Loading branch information
Ja7ad authored Sep 23, 2024
2 parents 6fc8dcb + c75f963 commit 8fcee93
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/semantic-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
version
wallet
grpc
proto
http
jsonrpc
nanomsg
Expand Down
3 changes: 2 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ linters-settings:
excludes:
- G304
- G204
- G115

stylecheck:
# TODO: enable ST1000 (at least one file in a package should have a package comment)
Expand All @@ -159,7 +160,7 @@ linters-settings:
predeclared:
# Comma-separated list of predeclared identifiers to not report on.
# Default: ""
ignore: "len"
ignore: "len, min, max"
# Include method names and field names (i.e., qualified names) in checks.
# Default: false
q: true
Expand Down
3 changes: 2 additions & 1 deletion crypto/hash/hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"

"golang.org/x/crypto/blake2b"
"golang.org/x/crypto/ripemd160" //nolint:gosec,staticcheck // use to hash the public key to get the address
"golang.org/x/crypto/ripemd160" //nolint:all // used to hash the public key to generate the address.
)

const HashSize = 32
Expand All @@ -21,6 +21,7 @@ func Hash256(data []byte) []byte {
}

func Hash160(data []byte) []byte {
//nolint:all // used to hash the public key to generate the address.
h := ripemd160.New()
n, err := h.Write(data)
if err != nil {
Expand Down

0 comments on commit 8fcee93

Please sign in to comment.