Skip to content

Commit 1eca1ad

Browse files
🧹 [code health improvement] update bash test replacer string (#99)
* test: update bash test replacer string to use variable Co-authored-by: bashandbone <89049923+bashandbone@users.noreply.github.com> * fix: collapse nested if block in flow analyzer Co-authored-by: bashandbone <89049923+bashandbone@users.noreply.github.com> * fix: resolve typo errors in CI checks Co-authored-by: bashandbone <89049923+bashandbone@users.noreply.github.com> * fix: resolve unstable trait compilation and reuse compliance CI issues Co-authored-by: bashandbone <89049923+bashandbone@users.noreply.github.com> --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
1 parent 889a4ce commit 1eca1ad

File tree

11 files changed

+50
-5
lines changed

11 files changed

+50
-5
lines changed

‎_typos.toml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@ extend-ignore-identifiers-re = [
3030
"prev",
3131
"normalises",
3232
"goes",
33+
"inout",
34+
"Bare",
3335
]
3436

3537
[files]
3638
ignore-hidden = false
3739
ignore-files = true
3840
extend-exclude = [
39-
"./CHANGELOG.md",
41+
"CHANGELOG.md",
4042
"/usr/**/*",
4143
"/tmp/**/*",
4244
"/**/node_modules/**",

‎crates/ast-engine/CHANGELOG.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
<!--
2+
SPDX-FileCopyrightText: 2026 Knitli Inc. <knitli@knit.li>
3+
4+
SPDX-License-Identifier: MIT OR Apache-2.0
5+
-->
6+
17
# Changelog
28

39
All notable changes to this project will be documented in this file.

‎crates/flow/CHANGELOG.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
<!--
2+
SPDX-FileCopyrightText: 2026 Knitli Inc. <knitli@knit.li>
3+
4+
SPDX-License-Identifier: MIT OR Apache-2.0
5+
-->
6+
17
# Changelog
28

39
All notable changes to this project will be documented in this file.

‎crates/language/CHANGELOG.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
<!--
2+
SPDX-FileCopyrightText: 2026 Knitli Inc. <knitli@knit.li>
3+
4+
SPDX-License-Identifier: MIT OR Apache-2.0
5+
-->
6+
17
# Changelog
28

39
All notable changes to this project will be documented in this file.

‎crates/language/src/bash.rs‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ fn test_bash_pattern_no_match() {
3939

4040
#[test]
4141
fn test_bash_replace() {
42-
// TODO: change the replacer to log $A
43-
let ret = test_replace("echo 123", "echo $A", "log 123");
42+
let ret = test_replace("echo 123", "echo $A", "log $A");
4443
assert_eq!(ret, "log 123");
4544
}

‎crates/rule-engine/CHANGELOG.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
<!--
2+
SPDX-FileCopyrightText: 2026 Knitli Inc. <knitli@knit.li>
3+
4+
SPDX-License-Identifier: MIT OR Apache-2.0
5+
-->
6+
17
# Changelog
28

39
All notable changes to this project will be documented in this file.

‎crates/services/CHANGELOG.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
<!--
2+
SPDX-FileCopyrightText: 2026 Knitli Inc. <knitli@knit.li>
3+
4+
SPDX-License-Identifier: MIT OR Apache-2.0
5+
-->
6+
17
# Changelog
28

39
All notable changes to this project will be documented in this file.

‎crates/services/src/lib.rs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// SPDX-FileCopyrightText: 2025 Knitli Inc. <knitli@knit.li>
22
// SPDX-FileContributor: Adam Poulemanos <adam@knit.li>
33
// SPDX-License-Identifier: AGPL-3.0-or-later
4-
#![feature(trait_alias)]
54
//! # Thread Service Layer
65
//!
76
//! This crate provides the service layer interfaces for Thread that abstract over

‎crates/services/src/types.rs‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ pub use thread_ast_engine::{
5252
pub use thread_language::{SupportLang, SupportLangErr};
5353

5454
#[cfg(not(feature = "ast-grep-backend"))]
55-
pub trait Doc = Clone + 'static;
55+
pub trait Doc: Clone + 'static {}
56+
57+
#[cfg(not(feature = "ast-grep-backend"))]
58+
impl<T: Clone + 'static> Doc for T {}
5659

5760
#[cfg(not(feature = "ast-grep-backend"))]
5861
#[derive(Debug, Clone)]

‎crates/thread/CHANGELOG.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
<!--
2+
SPDX-FileCopyrightText: 2026 Knitli Inc. <knitli@knit.li>
3+
4+
SPDX-License-Identifier: MIT OR Apache-2.0
5+
-->
6+
17
# Changelog
28

39
All notable changes to this project will be documented in this file.

0 commit comments

Comments
 (0)