Skip to content

Commit ce42c30

Browse files
authored
Merge pull request #454 from numtide/feat/refine-processing
feat: refine processing
2 parents 11d102b + ca655f5 commit ce42c30

12 files changed

+579
-471
lines changed

Diff for: cmd/format/format.go

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

Diff for: 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,

Diff for: format/cache.go

-94
This file was deleted.

0 commit comments

Comments
 (0)