Skip to content

Commit b474368

Browse files
committed
activate pmd module on pmd namespaced codemods
1 parent 43e0747 commit b474368

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugins/codemodder-plugin-pmd/src/main/java/io/codemodder/providers/sarif/pmd/PmdModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public PmdModule(
3535
protected boolean isResponsibleFor(final Class<? extends CodeChanger> codemod) {
3636
Codemod annotation = codemod.getAnnotation(Codemod.class);
3737
String id = annotation.id();
38-
return id.startsWith("semgrep:") || id.startsWith("pixee:");
38+
return id.startsWith("semgrep:") || id.startsWith("pixee:") || id.startsWith("pmd:");
3939
}
4040

4141
@Override

plugins/codemodder-plugin-pmd/src/test/java/io/codemodder/providers/sarif/pmd/PmdModuleTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public abstract class MultipleDeclarations {
4646
}
4747

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

0 commit comments

Comments
 (0)