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

Disallow panics, unreachables, and expects using clippy lints #205

Merged
merged 2 commits into from
Jan 29, 2025

Conversation

poljar
Copy link
Collaborator

@poljar poljar commented Jan 17, 2025

Now that we're relatively stable, we can disallow the usage of these quite dangerous invocations.

We don't want to let any of those slip through reviews and it allows people that write PRs know ahead of time that they shouldn't be used.

Depends on #204 since that removes a panic that shouldn't exist.

@poljar poljar requested a review from dkasak as a code owner January 17, 2025 16:13
@codecov-commenter
Copy link

codecov-commenter commented Jan 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.35%. Comparing base (96bfe8d) to head (3dd42bc).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #205   +/-   ##
=======================================
  Coverage   90.35%   90.35%           
=======================================
  Files          34       34           
  Lines        1990     1990           
=======================================
  Hits         1798     1798           
  Misses        192      192           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

This ensures that we don't add panics and expects in the codebase unless
we explicitly allow it for each individual invocation.
@poljar poljar force-pushed the poljar/disallow-panics-unreachables branch from ca06697 to 3dd42bc Compare January 29, 2025 16:28
@poljar
Copy link
Collaborator Author

poljar commented Jan 29, 2025

Rebased now that #204 has been merged.

Copy link
Member

@dkasak dkasak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@poljar poljar merged commit 054ac39 into main Jan 29, 2025
34 checks passed
@poljar poljar deleted the poljar/disallow-panics-unreachables branch January 29, 2025 17:19
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.

3 participants