Skip to content

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

Merged
kisielk merged 2 commits into
kisielk:masterfrom
shogo82148:exclude-sha3-read-and-write
May 12, 2026
Merged

Exclude crypto/sha3.Read and crypto/sha3.Write by default#276
kisielk merged 2 commits into
kisielk: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.

@kisielk kisielk merged commit c2e21c4 into kisielk:master May 12, 2026
2 checks passed
@kisielk

kisielk commented May 12, 2026

Copy link
Copy Markdown
Owner

Thank you

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.

2 participants