File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed
buildSrc/src/main/kotlin/datadog/gradle/plugin/naming Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments