Commit 506ab17
fix(ast-engine): panic if from_path is not implemented (#98)
* fix(ast-engine): panic if `from_path` is not implemented in `Language` trait
This modifies the default trait implementation of `from_path` in `crates/ast-engine/src/language.rs` to panic with `unimplemented!("from_path is not implemented")` rather than silently returning `None`. This enforces proper implementation by types implementing the `Language` trait and prevents silent failures.
Co-authored-by: bashandbone <89049923+bashandbone@users.noreply.github.com>
* fix(flow): fix clippy `collapsible-if` warning in analyzer
The previous run failed because of a `clippy::collapsible_if` warning due to the `-D warnings` setup in GitHub Actions. Replaced nested if block with an `&&` condition in `crates/flow/src/incremental/analyzer.rs` to fix this issue.
Co-authored-by: bashandbone <89049923+bashandbone@users.noreply.github.com>
* chore(typos): fix misspelled words in dictionaries and configs
Fixed misspelled words in `_typos.toml` to prevent CI failures.
1. Replaced "inout" with "input" in `classifications/_universal_rules.json`.
2. Appended "inout", "ba", "ede", and "Bare" to `_typos.toml` `extend-ignore-identifiers-re` config since they were used as valid references/names in other locations.
Co-authored-by: bashandbone <89049923+bashandbone@users.noreply.github.com>
* fix(services): remove experimental `trait_alias` usage causing build failure on stable toolchains
The usage of the nightly `#![feature(trait_alias)]` caused build failures on standard stable release channels used across standard checks. Replaced the `Doc` trait alias with a regular trait definition `pub trait Doc: Clone + 'static {}` and a blanket implementation to remain compliant with stable constraints.
Co-authored-by: bashandbone <89049923+bashandbone@users.noreply.github.com>
* test(ast-engine): add regression tests for `Language::from_path` default panic behavior
Added unit tests to `crates/ast-engine/src/language.rs` to confirm the panic message format correctly identifies the missing implementation type name and verify an explicit override safely succeeds.
Co-authored-by: bashandbone <89049923+bashandbone@users.noreply.github.com>
* fix(ast-engine): harden Language::from_path default — better diagnostics and contract tests (#102)
* Initial plan
* fix(ast-engine): improve Language::from_path doc, panic message, and add tests
Co-authored-by: bashandbone <89049923+bashandbone@users.noreply.github.com>
---------
Signed-off-by: Adam Poulemanos <89049923+bashandbone@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
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>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>1 parent 58e59d6 commit 506ab17
File tree
5 files changed
+99
-9
lines changed- classifications
- crates
- ast-engine/src
- services/src
5 files changed
+99
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1189 | 1189 | | |
1190 | 1190 | | |
1191 | 1191 | | |
1192 | | - | |
| 1192 | + | |
1193 | 1193 | | |
1194 | 1194 | | |
1195 | 1195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
71 | 75 | | |
72 | | - | |
73 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
74 | 81 | | |
75 | 82 | | |
76 | 83 | | |
| |||
87 | 94 | | |
88 | 95 | | |
89 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
90 | 112 | | |
91 | 113 | | |
92 | 114 | | |
93 | 115 | | |
94 | | - | |
95 | | - | |
| 116 | + | |
96 | 117 | | |
97 | 118 | | |
98 | 119 | | |
| |||
105 | 126 | | |
106 | 127 | | |
107 | 128 | | |
108 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
109 | 152 | | |
110 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
111 | 195 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
0 commit comments