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

rules/errors: allow hash.Hash.Write to not return an error as its Go contract holds #49

Merged

Conversation

odeke-em
Copy link
Collaborator

Allows hash.Hash.Write to not return an error as the Go contracts dictates at https://pkg.go.dev/hash#Hash.Write and thus it is useless to flag such.

Fixes #45

…contract holds

Allows hash.Hash.Write to not return an error as the Go contracts
dictates at https://pkg.go.dev/hash#Hash.Write and thus it is useless
to flag such.

Fixes #45
@codecov-commenter
Copy link

Codecov Report

Base: 71.77% // Head: 71.77% // No change to project coverage 👍

Coverage data is based on head (8d0d8e0) compared to base (7741996).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #49   +/-   ##
=======================================
  Coverage   71.77%   71.77%           
=======================================
  Files           9        9           
  Lines         627      627           
=======================================
  Hits          450      450           
  Misses        149      149           
  Partials       28       28           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@odeke-em odeke-em merged commit 8d0d8e0 into master Sep 24, 2022
@odeke-em odeke-em deleted the rules-errors-allow-hash.Hash.Write-to-not-return-an-error branch September 24, 2022 02:31
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.

errors: do not report a unhandled error on hash.Hash.Write code which by contract WILL NEVER return an error
2 participants