From 0c2d4afa16363d4e0df0e6cb0a16b45b8b592c18 Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Tue, 23 Apr 2024 09:12:57 +0000 Subject: [PATCH] refactor: Prefix RSPEC identifiers with capital S Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.text.FindAndReplace?organizationId=T3BlblJld3JpdGU%3D Co-authored-by: Moderne --- .../java/org/openrewrite/java/logging/ParameterizedLogging.java | 2 +- .../java/logging/slf4j/LoggersNamedForEnclosingClass.java | 2 +- src/main/resources/META-INF/rewrite/slf4j.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/openrewrite/java/logging/ParameterizedLogging.java b/src/main/java/org/openrewrite/java/logging/ParameterizedLogging.java index 37a1d0d..4976491 100644 --- a/src/main/java/org/openrewrite/java/logging/ParameterizedLogging.java +++ b/src/main/java/org/openrewrite/java/logging/ParameterizedLogging.java @@ -63,7 +63,7 @@ public String getDescription() { @Override public Set getTags() { - return new HashSet<>(Arrays.asList("RSPEC-2629", "RSPEC-3457")); + return new HashSet<>(Arrays.asList("RSPEC-S2629", "RSPEC-S3457")); } @Override diff --git a/src/main/java/org/openrewrite/java/logging/slf4j/LoggersNamedForEnclosingClass.java b/src/main/java/org/openrewrite/java/logging/slf4j/LoggersNamedForEnclosingClass.java index a9bf7ad..e9fc915 100644 --- a/src/main/java/org/openrewrite/java/logging/slf4j/LoggersNamedForEnclosingClass.java +++ b/src/main/java/org/openrewrite/java/logging/slf4j/LoggersNamedForEnclosingClass.java @@ -49,7 +49,7 @@ public Duration getEstimatedEffortPerOccurrence() { @Override public Set getTags() { - return new HashSet<>(Arrays.asList("RSPEC-3416", "logging", "slf4j")); + return new HashSet<>(Arrays.asList("RSPEC-S3416", "logging", "slf4j")); } @Override diff --git a/src/main/resources/META-INF/rewrite/slf4j.yml b/src/main/resources/META-INF/rewrite/slf4j.yml index 4ecd03f..35b0b73 100644 --- a/src/main/resources/META-INF/rewrite/slf4j.yml +++ b/src/main/resources/META-INF/rewrite/slf4j.yml @@ -77,7 +77,7 @@ description: Use SLF4J's parameterized logging, which can significantly boost pe tags: - logging - slf4j - - RSPEC-2629 + - RSPEC-S2629 recipeList: - org.openrewrite.java.logging.ParameterizedLogging: methodPattern: org.slf4j.Logger trace(..)