Skip to content

Commit 6a6e0e9

Browse files
committed
use raw strings
1 parent 2c47399 commit 6a6e0e9

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

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

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,18 @@ class InstrumentationNamingPlugin : Plugin<Project> {
5454
appendLine(" ${violation.message}")
5555
appendLine()
5656
}
57-
appendLine("Naming rules:")
58-
appendLine(" 1. Module name must end with a version (e.g., '2.0', '3.1') OR one of: $suffixesStr")
59-
appendLine(" 2. Module name must include the parent directory name")
60-
appendLine(" Example: 'couchbase/couchbase-2.0' ✓ (contains 'couchbase')")
61-
appendLine()
62-
appendLine("To exclude specific modules or customize suffixes, configure the plugin:")
63-
appendLine(" instrumentationNaming {")
64-
appendLine(" exclusions.set(listOf(\"module-name\"))")
65-
appendLine(" suffixes.set(listOf(\"-common\", \"-stubs\"))")
66-
appendLine(" }")
57+
append("""
58+
Naming rules:
59+
1. Module name must end with a version (e.g., '2.0', '3.1') OR one of: $suffixesStr
60+
2. Module name must include the parent directory name
61+
Example: 'couchbase/couchbase-2.0' ✓ (contains 'couchbase')
62+
63+
To exclude specific modules or customize suffixes, configure the plugin:
64+
instrumentationNaming {
65+
exclusions.set(listOf("module-name"))
66+
suffixes.set(listOf("-common", "-stubs"))
67+
}
68+
""".trimIndent())
6769
}
6870
throw GradleException(errorMessage)
6971
} else {

0 commit comments

Comments
 (0)