Skip to content

Exclude crypto/sha3.Read and crypto/sha3.Write by default#276

Open
shogo82148 wants to merge 1 commit intokisielk:masterfrom
shogo82148:exclude-sha3-read-and-write
Open

Exclude crypto/sha3.Read and crypto/sha3.Write by default#276
shogo82148 wants to merge 1 commit intokisielk:masterfrom
shogo82148:exclude-sha3-read-and-write

Conversation

@shogo82148
Copy link
Copy Markdown
Contributor

Hi,

I am using https://pkg.go.dev/crypto/sha3, which was added in Go 1.24.
Unlike other packages (e.g. crypto/sha256), crypto/sha3 returns *crypto/sha3.SHA3 or *crypto/sha3.SHAKE instead of hash.Hash.
This causes errcheck to report a false positive.
Therefore, I added "crypto/sha3" to the exclude list.

Co-authored-by: Copilot <copilot@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant