From c48bb64f6c3beca2f30ea878bbf1f38b61285306 Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Wed, 29 Nov 2023 11:26:47 +0100 Subject: [PATCH] Standardize plaintext masks across Maven, Gradle and CLI --- .../gradle/DefaultRewriteExtension.java | 43 +++++++++++-------- 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/plugin/src/main/java/org/openrewrite/gradle/DefaultRewriteExtension.java b/plugin/src/main/java/org/openrewrite/gradle/DefaultRewriteExtension.java index 2ae0f78f5..8adf07d1c 100644 --- a/plugin/src/main/java/org/openrewrite/gradle/DefaultRewriteExtension.java +++ b/plugin/src/main/java/org/openrewrite/gradle/DefaultRewriteExtension.java @@ -333,26 +333,33 @@ public void exclusion(Collection exclusions) { public List getPlainTextMasks() { if (plainTextMasks.isEmpty()) { plainTextMasks.addAll(Arrays.asList( - "**gradlew", - "**META-INF/services/**", - "**/META-INF/spring.factories", - "**/META-INF/spring/**", - "**.bash", - "**.bat", + "**/*.adoc", + "**/*.bash", + "**/*.bat", "**/CODEOWNERS", - "**Dockerfile", - "**.gitattributes", - "**.gitignore", - "**.java-version", - "**.jsp", - "**.ksh", - "**.kts", + "**/*.css", + "**/*.config", + "**/Dockerfile*", + "**/.gitattributes", + "**/.gitignore", + "**/*.htm*", + "**/gradlew", + "**/.java-version", + "**/*.jsp", + "**/*.ksh", "**/lombok.config", - "**.qute.java", - "**.sdkmanrc", - "**.sh", - "**.sql", - "**.txt" + "**/*.md", + "**/*.mf", + "**/META-INF/services/**", + "**/META-INF/spring/**", + "**/META-INF/spring.factories", + "**/mvnw", + "**/*.qute.java", + "**/.sdkmanrc", + "**/*.sh", + "**/*.sql", + "**/*.svg", + "**/*.txt" )); } return plainTextMasks;