Skip to content

Commit

Permalink
refactor: Prefix RSPEC identifiers with capital S
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek and TeamModerne committed Apr 23, 2024
1 parent 2e51b86 commit 2619c6e
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public String getDescription() {

@Override
public Set<String> getTags() {
return new HashSet<>(Arrays.asList("RSPEC-4738", "guava"));
return new HashSet<>(Arrays.asList("RSPEC-S4738", "guava"));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public String getDescription() {

@Override
public Set<String> getTags() {
return new HashSet<>(Arrays.asList("RSPEC-4738", "guava"));
return new HashSet<>(Arrays.asList("RSPEC-S4738", "guava"));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public String getDescription() {

@Override
public Set<String> getTags() {
return new HashSet<>(Arrays.asList("RSPEC-4738", "guava"));
return new HashSet<>(Arrays.asList("RSPEC-S4738", "guava"));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public String getDescription() {

@Override
public Set<String> getTags() {
return new HashSet<>(Arrays.asList("RSPEC-4738", "guava"));
return new HashSet<>(Arrays.asList("RSPEC-S4738", "guava"));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public String getDescription() {

@Override
public Set<String> getTags() {
return new HashSet<>(Arrays.asList("RSPEC-4738", "guava"));
return new HashSet<>(Arrays.asList("RSPEC-S4738", "guava"));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public Duration getEstimatedEffortPerOccurrence() {

@Override
public Set<String> getTags() {
return new HashSet<>(Collections.singletonList("RSPEC-6204"));
return new HashSet<>(Collections.singletonList("RSPEC-S6204"));
}

@Override
Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/META-INF/rewrite/no-guava.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ displayName: Prefer `java.util.function.Function`
description: Prefer `java.util.function.Function` instead of using `com.google.common.base.Function`.
tags:
- guava
- RSPEC-4738
- RSPEC-S4738
recipeList:
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: com.google.common.base.Function
Expand All @@ -127,7 +127,7 @@ displayName: Prefer `java.util.Optional`
description: Prefer `java.util.Optional` instead of using `com.google.common.base.Optional`.
tags:
- guava
- RSPEC-4738
- RSPEC-S4738
recipeList:
- org.openrewrite.java.migrate.guava.PreferJavaUtilOptionalOrSupplier
- org.openrewrite.java.migrate.guava.PreferJavaUtilOptionalOrElseNull
Expand Down Expand Up @@ -159,7 +159,7 @@ displayName: Prefer `java.util.function.Predicate`
description: Prefer `java.util.function.Predicate` instead of using `com.google.common.base.Predicate`.
tags:
- guava
- RSPEC-4738
- RSPEC-S4738
recipeList:
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: com.google.common.base.Predicate
Expand All @@ -172,7 +172,7 @@ displayName: Prefer `java.util.function.Supplier`
description: Prefer `java.util.function.Supplier` instead of using `com.google.common.base.Supplier`.
tags:
- guava
- RSPEC-4738
- RSPEC-S4738
recipeList:
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: com.google.common.base.Supplier
Expand Down

0 comments on commit 2619c6e

Please sign in to comment.