Repository navigation
Commit cdc6a61
authored
feat: report unsafe formatting and add join-predicate and final-CTE rules (#822)
* fix: report unsafe formatting and preserve commented implicit aliases
* feat: add plain join predicate and final CTE naming rules
* fix: preserve authored SQL syntax through native formatting
* fix: recognize wrapped root CTEs and literal-only join predicates
* fix: preserve interpolation spelling and separate macro CTE items
* fix: merge identical formatter syntax branches
* test: expect authored empty-fixture spelling after formatting1 parent be1847e commit cdc6a61
23 files changed
Lines changed: 1675 additions & 166 deletions
File tree
- crates/sqlbuild-rules-native/src/sql_lint
- _helpers
- tests
- docs
- src/sqlbuild
- cli/commands/_helpers/playground/templates/waffle_shop/models/marts
- lint
- _helpers
- main
- rule_engine/_helpers/guidance
- tests
- integration/src/sqlbuild/cli/commands/main
- unit/src/sqlbuild
- lint
- rule_engine/_helpers/engine
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
197 | 218 | | |
198 | 219 | | |
199 | 220 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
232 | 242 | | |
233 | 243 | | |
234 | 244 | | |
| |||
246 | 256 | | |
247 | 257 | | |
248 | 258 | | |
249 | | - | |
| 259 | + | |
250 | 260 | | |
251 | 261 | | |
252 | 262 | | |
| |||
286 | 296 | | |
287 | 297 | | |
288 | 298 | | |
| 299 | + | |
| 300 | + | |
289 | 301 | | |
290 | 302 | | |
291 | 303 | | |
| |||
395 | 407 | | |
396 | 408 | | |
397 | 409 | | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
398 | 429 | | |
399 | 430 | | |
400 | 431 | | |
| |||
508 | 539 | | |
509 | 540 | | |
510 | 541 | | |
| 542 | + | |
| 543 | + | |
511 | 544 | | |
512 | 545 | | |
513 | 546 | | |
| |||
517 | 550 | | |
518 | 551 | | |
519 | 552 | | |
520 | | - | |
| 553 | + | |
521 | 554 | | |
522 | 555 | | |
523 | 556 | | |
524 | | - | |
| 557 | + | |
525 | 558 | | |
526 | 559 | | |
527 | 560 | | |
| |||
0 commit comments