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/sdk: allow hash.Hash.Write et al to ignore errors since contract permits #66

Merged
merged 1 commit into from
Oct 23, 2022

Conversation

odeke-em
Copy link
Collaborator

Adds an allowList so that types and methods that don't need an error check. That reduces false positives.

Fixes #63

…t permits

Adds an allowList so that types and methods that don't need
an error check. That reduces false positives.

Fixes #63
@codecov-commenter
Copy link

Codecov Report

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

Coverage data is based on head (b14268e) compared to base (05a47ad).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #66   +/-   ##
=======================================
  Coverage   71.85%   71.85%           
=======================================
  Files           9        9           
  Lines         636      636           
=======================================
  Hits          457      457           
  Misses        150      150           
  Partials       29       29           

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 b887802 into master Oct 23, 2022
@odeke-em odeke-em deleted the G703-allowlist-for-errors-that-can-be-ignored branch October 23, 2022 01:50
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.

rules/sdk: G702: Blocklisted import crypto/rand should not flag for crypto related code
2 participants