Skip to content

Commit ca655f5

Browse files
committed
feat: refactor processing
Simplifies the overall processing pipeline, making it easier to follow and reason about. Signed-off-by: Brian McGee <[email protected]>
1 parent 11d102b commit ca655f5

12 files changed

+579
-471
lines changed

cmd/format/format.go

+39-312
Large diffs are not rendered by default.

cmd/root_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ func TestCache(t *testing.T) {
483483

484484
// running should match but not format anything
485485
_, statz, err = treefmt(t, "--config-file", configPath, "--tree-root", tempDir)
486-
as.ErrorIs(err, formatCmd.ErrFormattingFailures)
486+
as.ErrorIs(err, format.ErrFormattingFailures)
487487

488488
assertStats(t, as, statz, map[stats.Type]int{
489489
stats.Traversed: 32,
@@ -494,7 +494,7 @@ func TestCache(t *testing.T) {
494494

495495
// running again should provide the same result
496496
_, statz, err = treefmt(t, "--config-file", configPath, "--tree-root", tempDir)
497-
as.ErrorIs(err, formatCmd.ErrFormattingFailures)
497+
as.ErrorIs(err, format.ErrFormattingFailures)
498498

499499
assertStats(t, as, statz, map[stats.Type]int{
500500
stats.Traversed: 32,

format/cache.go

-94
This file was deleted.

0 commit comments

Comments
 (0)