Skip to content

Commit

Permalink
fix: do not consider the generated files as failed during check
Browse files Browse the repository at this point in the history
  • Loading branch information
justlorain committed Dec 1, 2024
1 parent c5acf0d commit 5186dc0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions util/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ func prepareCheck(path string, header []byte, fuzzy bool) func() {
return
}
if isGenerated(content) {
counter.failed++
slog.Warn("file is generated", slog.String("path", path))
slog.Warn("file is generated, won't check", slog.String("path", path))
return
}

Expand Down

0 comments on commit 5186dc0

Please sign in to comment.