Clippy rules (test related)#7968
Conversation
|
Caution Review failedFailed to post review comments 📝 WalkthroughWalkthroughThis PR enables three new clippy restriction lints ( ChangesTest naming and organization refactoring driven by new clippy lints
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@crates/sre_engine/tests/tests.rs`:
- Line 7: Fix the typo in the test attribute by changing the reason string in
the #[expect(unused, reason = "Nedded for automated script")] attribute to
"Needed for automated script" so the attribute reads #[expect(unused, reason =
"Needed for automated script")]; update the attribute where it appears in
tests.rs (the #[expect(...)] on the test) to correct the spelling only.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yml
Review profile: CHILL
Plan: Pro
Run ID: bf39a243-7f5c-402e-92ed-57e4e899e5ee
📒 Files selected for processing (23)
Cargo.tomlcrates/codegen/src/compile.rscrates/common/src/cformat.rscrates/common/src/format.rscrates/common/src/str.rscrates/compiler-core/src/bytecode.rscrates/compiler-core/src/varint.rscrates/compiler/src/lib.rscrates/doc/src/lib.rscrates/sre_engine/tests/tests.rscrates/stdlib/src/_opcode.rscrates/stdlib/src/ssl/oid.rscrates/vm/src/builtins/type.rscrates/vm/src/dict_inner.rscrates/vm/src/eval.rscrates/vm/src/function/builtin.rscrates/vm/src/gc_state.rscrates/vm/src/getpath.rscrates/vm/src/stdlib/_io.rscrates/vm/src/types/slot_defs.rscrates/vm/src/vm/interpreter.rscrates/vm/src/vm/mod.rscrates/vm/src/vm/python_run.rs
youknowone
left a comment
There was a problem hiding this comment.
i love this clippy rule. using test_ prefix for every test doesn't make sense
Summary by CodeRabbit
Tests
test_prefix for consistency and clarity.Chores