Skip to content

Commit

Permalink
feat: improve summary stats
Browse files Browse the repository at this point in the history
Close #340

Signed-off-by: Brian McGee <[email protected]>
  • Loading branch information
brianmcgee committed Jul 5, 2024
1 parent a642145 commit da7b015
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli/helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,5 @@ func assertStats(t *testing.T, as *require.Assertions, traversed int32, emitted

func assertFormatted(t *testing.T, as *require.Assertions, output []byte, count int) {
t.Helper()
as.Contains(string(output), fmt.Sprintf("formatted %d files", count))
as.Contains(string(output), fmt.Sprintf("(%d changed)", count))
}
3 changes: 1 addition & 2 deletions stats/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ func Print() {
components := []string{
"traversed %d files",
"emitted %d files for processing",
"matched %d files to formatters",
"formatted %d files in %v",
"formatted %d files (%d changed) in %v",
"",
}

Expand Down

0 comments on commit da7b015

Please sign in to comment.