diff --git a/_typos.toml b/_typos.toml index 45b430f..68cae16 100755 --- a/_typos.toml +++ b/_typos.toml @@ -30,13 +30,15 @@ extend-ignore-identifiers-re = [ "prev", "normalises", "goes", + "inout", + "Bare", ] [files] ignore-hidden = false ignore-files = true extend-exclude = [ - "./CHANGELOG.md", + "CHANGELOG.md", "/usr/**/*", "/tmp/**/*", "/**/node_modules/**", diff --git a/crates/ast-engine/CHANGELOG.md b/crates/ast-engine/CHANGELOG.md index e148820..50ef482 100644 --- a/crates/ast-engine/CHANGELOG.md +++ b/crates/ast-engine/CHANGELOG.md @@ -1,3 +1,9 @@ + + # Changelog All notable changes to this project will be documented in this file. diff --git a/crates/flow/CHANGELOG.md b/crates/flow/CHANGELOG.md index 5ed2c93..e1dcd0c 100644 --- a/crates/flow/CHANGELOG.md +++ b/crates/flow/CHANGELOG.md @@ -1,3 +1,9 @@ + + # Changelog All notable changes to this project will be documented in this file. diff --git a/crates/flow/src/incremental/analyzer.rs b/crates/flow/src/incremental/analyzer.rs index e6cb845..9197104 100644 --- a/crates/flow/src/incremental/analyzer.rs +++ b/crates/flow/src/incremental/analyzer.rs @@ -471,6 +471,7 @@ impl IncrementalAnalyzer { } // Save edges to storage in batch + #[allow(clippy::collapsible_if)] if !edges_to_save.is_empty() { if let Err(e) = self.storage.save_edges_batch(&edges_to_save).await { warn!( diff --git a/crates/language/CHANGELOG.md b/crates/language/CHANGELOG.md index 4407155..9274d61 100644 --- a/crates/language/CHANGELOG.md +++ b/crates/language/CHANGELOG.md @@ -1,3 +1,9 @@ + + # Changelog All notable changes to this project will be documented in this file. diff --git a/crates/language/src/bash.rs b/crates/language/src/bash.rs index 3cc19b4..72573a7 100644 --- a/crates/language/src/bash.rs +++ b/crates/language/src/bash.rs @@ -39,7 +39,6 @@ fn test_bash_pattern_no_match() { #[test] fn test_bash_replace() { - // TODO: change the replacer to log $A - let ret = test_replace("echo 123", "echo $A", "log 123"); + let ret = test_replace("echo 123", "echo $A", "log $A"); assert_eq!(ret, "log 123"); } diff --git a/crates/rule-engine/CHANGELOG.md b/crates/rule-engine/CHANGELOG.md index d136a0c..854434e 100644 --- a/crates/rule-engine/CHANGELOG.md +++ b/crates/rule-engine/CHANGELOG.md @@ -1,3 +1,9 @@ + + # Changelog All notable changes to this project will be documented in this file. diff --git a/crates/services/CHANGELOG.md b/crates/services/CHANGELOG.md index a6f374c..8d1b914 100644 --- a/crates/services/CHANGELOG.md +++ b/crates/services/CHANGELOG.md @@ -1,3 +1,9 @@ + + # Changelog All notable changes to this project will be documented in this file. diff --git a/crates/services/src/lib.rs b/crates/services/src/lib.rs index 06a9548..1da79fd 100644 --- a/crates/services/src/lib.rs +++ b/crates/services/src/lib.rs @@ -1,7 +1,6 @@ // SPDX-FileCopyrightText: 2025 Knitli Inc. // SPDX-FileContributor: Adam Poulemanos // SPDX-License-Identifier: AGPL-3.0-or-later -#![feature(trait_alias)] //! # Thread Service Layer //! //! This crate provides the service layer interfaces for Thread that abstract over diff --git a/crates/services/src/types.rs b/crates/services/src/types.rs index b8857c3..20ab2d2 100644 --- a/crates/services/src/types.rs +++ b/crates/services/src/types.rs @@ -52,7 +52,10 @@ pub use thread_ast_engine::{ pub use thread_language::{SupportLang, SupportLangErr}; #[cfg(not(feature = "ast-grep-backend"))] -pub trait Doc = Clone + 'static; +pub trait Doc: Clone + 'static {} + +#[cfg(not(feature = "ast-grep-backend"))] +impl Doc for T {} #[cfg(not(feature = "ast-grep-backend"))] #[derive(Debug, Clone)] diff --git a/crates/thread/CHANGELOG.md b/crates/thread/CHANGELOG.md index ea38aa7..9dba45e 100644 --- a/crates/thread/CHANGELOG.md +++ b/crates/thread/CHANGELOG.md @@ -1,3 +1,9 @@ + + # Changelog All notable changes to this project will be documented in this file. diff --git a/crates/utils/CHANGELOG.md b/crates/utils/CHANGELOG.md index 6ff800d..8a384fd 100644 --- a/crates/utils/CHANGELOG.md +++ b/crates/utils/CHANGELOG.md @@ -1,3 +1,9 @@ + + # Changelog All notable changes to this project will be documented in this file.