Skip to content

Commit

Permalink
Fix message formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Farr <[email protected]>
  • Loading branch information
Xtansia committed Sep 4, 2024
1 parent d011749 commit 0d9eb7e
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ spotless {
// This will require the developer themselves to adhere to best practices.
val wildcardImports = wildcardImportRegex.findAll(contents)
if (wildcardImports.any()) {
throw AssertionError(
"""
var msg = """
Please replace the following wildcard imports with explicit imports ('spotlessApply' cannot resolve this issue):
${wildcardImports.joinToString("\n") { "\t- ${it.value}" }}
""".trimIndent()
)
""".trimIndent()
wildcardImports.forEach {
msg += "\n\t- ${it.value}"
}
msg += "\n"
throw AssertionError(msg)
}
contents
}
Expand Down

0 comments on commit 0d9eb7e

Please sign in to comment.