From d35c59c83c1369640b2df6a930373a870fa7e202 Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Wed, 29 Nov 2023 12:06:20 +0100 Subject: [PATCH] Standardize plaintext masks across Maven, Gradle and CLI (#668) --- .../maven/ConfigurableRewriteMojo.java | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/openrewrite/maven/ConfigurableRewriteMojo.java b/src/main/java/org/openrewrite/maven/ConfigurableRewriteMojo.java index 4cc417a0..1234b8bb 100644 --- a/src/main/java/org/openrewrite/maven/ConfigurableRewriteMojo.java +++ b/src/main/java/org/openrewrite/maven/ConfigurableRewriteMojo.java @@ -119,24 +119,32 @@ protected Set getPlainTextMasks() { if (plainTextMasks.isEmpty() && rewritePlainTextMasks == null) { //If not defined, use a default set of masks return new HashSet<>(Arrays.asList( - "**/META-INF/services/**", - "**/META-INF/spring.factories", - "**/META-INF/spring/**", + "**/*.adoc", "**/*.bash", "**/*.bat", "**/CODEOWNERS", + "**/*.css", "**/*.config", - "**/Dockerfile", + "**/Dockerfile*", "**/.gitattributes", "**/.gitignore", + "**/*.htm*", + "**/gradlew", "**/.java-version", "**/*.jsp", "**/*.ksh", + "**/lombok.config", "**/*.md", + "**/*.mf", + "**/META-INF/services/**", + "**/META-INF/spring/**", + "**/META-INF/spring.factories", + "**/mvnw", "**/*.qute.java", "**/.sdkmanrc", "**/*.sh", "**/*.sql", + "**/*.svg", "**/*.txt" )); } else {