Skip to content

Commit 5dcc64c

Browse files
committed
feat(transformer): replace tab-to-space hack with native indent configuration (#14191)
## Summary - Closes oxc-project/backlog#150 - Replaces manual tab-to-space replacement hack with native indentation configuration ## Changes - Configure `Driver::codegen_options()` to use spaces with width 2 - Configure `TestCase` Codegen instance to use spaces with width 2 - Remove three instances of `cow_replace("\t", " ")` hack - Add `IndentChar` imports where needed ## Context The `CodegenOptions` struct already had `indent_char` and `indent_width` fields available. This change leverages existing infrastructure to provide cleaner, more maintainable code instead of post-processing the output with string replacement. This addresses the issue mentioned in oxc-project/backlog#150 where transformer conformance output was replacing tabs with spaces as a workaround. 🤖 Generated with [Claude Code](https://claude.ai/code)
1 parent 5b74a81 commit 5dcc64c

File tree

4 files changed

+82
-82
lines changed

4 files changed

+82
-82
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,6 @@ jobs:
256256
- '!npm/**'
257257
- '!crates/oxc_linter/**'
258258
- '!crates/oxc_language_server/**'
259-
- '!tasks/**'
260259
261260
- uses: ./.github/actions/clone-submodules
262261
if: steps.filter.outputs.src == 'true'

0 commit comments

Comments
 (0)