Skip to content

Commit dbd28fa

Browse files
authored
✨ Add Runner for Community Codemods (#444)
To help with running codemods from the CLI. /close ISS-1951
1 parent 22caa90 commit dbd28fa

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

community-codemods/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ plugins {
77

88
description = "Community codemods"
99

10+
application {
11+
mainClass.set("io.codemodder.examples.CommunityCodemods")
12+
}
13+
1014
dependencies {
1115
implementation(project(":framework:codemodder-base"))
1216
implementation(project(":plugins:codemodder-plugin-semgrep"))
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package io.codemodder.examples;
2+
3+
import io.codemodder.Runner;
4+
import java.util.List;
5+
6+
/** Runs the community codemods. */
7+
public final class CommunityCodemods {
8+
9+
/**
10+
* @param args the arguments to pass to the runner
11+
*/
12+
public static void main(final String[] args) {
13+
Runner.run(List.of(MakeJUnit5TestsFinalCodemod.class, MakeJUnit5TestsFinalCodemod.class), args);
14+
}
15+
}

0 commit comments

Comments
 (0)