Skip to content

Commit

Permalink
activate pmd module on pmd namespaced codemods
Browse files Browse the repository at this point in the history
  • Loading branch information
nahsra committed Nov 17, 2024
1 parent 43e0747 commit b474368
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public PmdModule(
protected boolean isResponsibleFor(final Class<? extends CodeChanger> codemod) {
Codemod annotation = codemod.getAnnotation(Codemod.class);
String id = annotation.id();
return id.startsWith("semgrep:") || id.startsWith("pixee:");
return id.startsWith("semgrep:") || id.startsWith("pixee:") || id.startsWith("pmd:");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public abstract class MultipleDeclarations {
}

@Codemod(
id = "pmd-test:java/my-pmd-codemod",
id = "pmd:java/my-pmd-codemod",
importance = Importance.HIGH,
reviewGuidance = ReviewGuidance.MERGE_AFTER_CURSORY_REVIEW)
static class UsesPmdCodemod extends SarifPluginJavaParserChanger<VariableDeclarator> {
Expand Down

0 comments on commit b474368

Please sign in to comment.