Skip to content

Commit

Permalink
Suppress log message "Format was not able to resolve"... when linting
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-dingemans committed Jun 4, 2024
1 parent cf26439 commit 1c0226b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ internal class CodeFormatter(
}
formatRunCount++
} while (mutated && formatRunCount < maxFormatRunsPerFile)
if (mutated && formatRunCount == maxFormatRunsPerFile) {
if (mutated && formatRunCount == maxFormatRunsPerFile && autocorrectHandler !is NoneAutocorrectHandler) {
// It is unknown if the last format run introduces new lint violations which can be autocorrected. So run lint once more
// so that the user can be informed about this correctly.
lintAfterFormat().also {
Expand Down

0 comments on commit 1c0226b

Please sign in to comment.