Commit d800f8a
🧹 Add symbolic test for Rewrite transformation (#97)
* 🧹 Add symbolic test for Rewrite transformation
Addresses a TODO item in crates/rule-engine/src/transform/trans.rs to add a symbolic test for the Rewrite variant of the Trans enum. It verifies the struct initialization, properties like rewriters and join_by, as well as checking the proper usage of used_rewriters() and used_vars().
Co-authored-by: bashandbone <89049923+bashandbone@users.noreply.github.com>
* 🛠️ Fix clippy errors causing CI failures
- Fixed `collapsible_if` warning in `crates/flow/src/incremental/analyzer.rs` by combining the nested `if let Err` with the outer condition using `&&`.
- Fixed `unused_variables` warning in `crates/language/src/lib.rs` by prefixing `file_name` with an underscore where it was only conditionally used in macros.
Co-authored-by: bashandbone <89049923+bashandbone@users.noreply.github.com>
* 🧹 Fix typos false positives causing CI failures
- Excluded `CHANGELOG.md` properly in `_typos.toml` without the `./` prefix, fixing false positives like `ba` and `ede` found in commit hashes.
- Added `Bare` to the global ignore list, as it's a correct word that shouldn't be matched against `Baer` in `crates/flow/src/incremental/extractors/rust.rs` and `python.rs`.
- Added `inout` to the global ignore list, as it's a reserved keyword in Swift, fixing false positives in `classifications/swift.json` and `_universal_rules.json`.
- Added `Supress`, `Teh`, and `teh` to `extend-words` to safely ignore occurrences inside the root `README.md` without editing documentation artifacts.
Co-authored-by: bashandbone <89049923+bashandbone@users.noreply.github.com>
* Address PR comments and clean up CI failures
Fixed typos false positives causing CI failures.
- Excluded CHANGELOG.md properly in _typos.toml without the ./ prefix, fixing false positives like ba and ede found in commit hashes.
- Added Bare to the global ignore list, as it's a correct word that shouldn't be matched against Baer in crates/flow/src/incremental/extractors/rust.rs and python.rs.
- Added inout to the global ignore list, as it's a reserved keyword in Swift, fixing false positives in classifications/swift.json and _universal_rules.json.
- Added Supress, Teh, and teh to extend-words to safely ignore occurrences inside the root README.md without editing documentation artifacts.
Removed all downloaded typos artifacts and restored original README.md.
Co-authored-by: bashandbone <89049923+bashandbone@users.noreply.github.com>
---------
Signed-off-by: Adam Poulemanos <89049923+bashandbone@users.noreply.github.com>
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>1 parent 506ab17 commit d800f8a
File tree
3 files changed
+33
-6
lines changed- crates
- language/src
- rule-engine/src/transform
3 files changed
+33
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
39 | 45 | | |
40 | 46 | | |
41 | 47 | | |
42 | 48 | | |
43 | | - | |
| 49 | + | |
44 | 50 | | |
45 | 51 | | |
46 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1721 | 1721 | | |
1722 | 1722 | | |
1723 | 1723 | | |
1724 | | - | |
| 1724 | + | |
1725 | 1725 | | |
1726 | 1726 | | |
1727 | | - | |
| 1727 | + | |
1728 | 1728 | | |
1729 | 1729 | | |
1730 | 1730 | | |
1731 | 1731 | | |
1732 | 1732 | | |
1733 | 1733 | | |
1734 | | - | |
| 1734 | + | |
1735 | 1735 | | |
1736 | 1736 | | |
1737 | 1737 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
554 | | - | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
555 | 576 | | |
0 commit comments