-
Notifications
You must be signed in to change notification settings - Fork 77
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
feat: skip warning for searches #428
Conversation
On commit 39762d6, Grit tried to heal these tests:
Tip You can view and edit CI healing settings on the Grit App. |
WalkthroughWalkthroughThe changes introduced in this diff primarily enhance the functionality of the CLI and core components by integrating the Changes
Assessment against linked issues
Recent review detailsConfiguration used: .coderabbit.yaml Files selected for processing (2)
Files skipped from review as they are similar to previous changes (1)
Additional context usedLearnings (1)
Additional comments not posted (9)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings
println!("stderr: {:?}", stderr); | ||
|
||
// Expect it to fail | ||
assert!(output.status.success(), "Command should have passed"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spelling: The assertion message should indicate that the command should have passed, not failed.
Fixes #427
Summary by CodeRabbit
grit-pattern-matcher
dependency to enhance pattern matching capabilities.analysis
and a functionhas_rewrite
to identify rewrite operations in patterns.Greptile Summary
This is an auto-generated summary
The pull request focuses on enhancing walking patterns by integrating new pattern matching capabilities and refining existing logic.
crates/cli/Cargo.toml
: Addedgrit-pattern-matcher
dependency to improve pattern matching in the CLI tool.crates/cli_bin/tests/apply.rs
: Introducedno_search_warning
test to ensure no warnings are triggered for search operations without rewrites.crates/core/src/pattern_compiler/not_compiler.rs
: Modifiediter
method calls to include an empty slice, ensuring correct iteration logic.crates/grit-pattern-matcher/src/pattern/ast_node_pattern.rs
: Updatedchildren
method signature inAstNodePattern
to acceptPatternDefinition
references, enhancing pattern matching flexibility.