Skip to content

Commit 59782ec

Browse files
amarzialibric3
andauthored
Update buildSrc/src/main/kotlin/datadog/gradle/plugin/naming/InstrumentationNamingPlugin.kt
Co-authored-by: Brice Dutheil <[email protected]>
1 parent 9976152 commit 59782ec

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

buildSrc/src/main/kotlin/datadog/gradle/plugin/naming/InstrumentationNamingPlugin.kt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,16 @@ class InstrumentationNamingPlugin : Plugin<Project> {
4747
if (violations.isNotEmpty()) {
4848
val suffixesStr = suffixes.joinToString("', '", "'", "'")
4949
val errorMessage = buildString {
50-
appendLine("\nInstrumentation naming convention violations found:")
51-
appendLine()
50+
appendLine("""
51+
52+
Instrumentation naming convention violations found:
53+
54+
""".trimIndent())
5255
violations.forEach { violation ->
53-
appendLine("${violation.path}")
54-
appendLine(" ${violation.message}")
55-
appendLine()
56+
appendLine("""
57+
${violation.path}
58+
${violation.message}
59+
""".trimEndent())
5660
}
5761
append("""
5862
Naming rules:

0 commit comments

Comments
 (0)