PathTransformSpec
API for modifying module names when inserting them into any generated diagrams. For example if your modules are within a heavily-nested "modules" directory in your project's root, you might want to call something like:
atlas {
pathTransforms {
remove("^:modules:")
replace(pattern = ":", replacement = " ")
}
}Content copied to clipboard
then a path of ":modules:path:to:something" will be mapped to "path to something" for display in the charts. Remember the declarations inside pathTransforms are called in descending order.
It doesn't support Regex group replacement, just pattern identification.