-
Notifications
You must be signed in to change notification settings - Fork 5
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
lint: warn panics, expects and unwraps #1932
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
closes #1511 |
Final benchmark: Git Info:
Configuration:
RPS Stats: Max: 1259.00, Min: 781.00, Avg: 1146.96, StdDev: 40.36 Plot: View Plot |
PR Type
Enhancement, Tests
Description
expect
andpanic
usage in Cargo.tomlexpect
andpanic
in testse2e-admin-password
test to use a loop, reducing code duplicatione2e-leader-follower-up
into implementation and wrapper functions for better modularity_coverage-run-stratus-recipe
for reusable coverage runslint-check
command to include new clippy flags, allowing for more flexible linting optionsChanges walkthrough 📝
.clippy.toml
Allow expect and panic in tests
.clippy.toml
allow-expect-in-tests = true
allow-panic-in-tests = true
Cargo.toml
Add warnings for expect and panic usage
Cargo.toml
expect_used = "warn"
panic = "warn"
justfile
Refactor test commands and improve code coverage
justfile
lint-check
command to include new clippy flagse2e-admin-password
test to use a loope2e-leader-follower-up
into implementation and wrapper functions