Skip to content

Commit a0d1502

Browse files
author
Vincent Potucek
committed
Add rewrite support for staticanalysis.RemoveUnusedPrivateMethods
1 parent 69fa58c commit a0d1502

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

pom.xml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,42 @@
130130
</execution>
131131
</executions>
132132
</plugin>
133+
<plugin>
134+
<groupId>org.openrewrite.maven</groupId>
135+
<artifactId>rewrite-maven-plugin</artifactId>
136+
</plugin>
133137
</plugins>
134138
<pluginManagement>
135139
<plugins>
136-
<plugin>
140+
<plugin>
141+
<groupId>org.openrewrite.maven</groupId>
142+
<artifactId>rewrite-maven-plugin</artifactId>
143+
<version>6.15.0</version>
144+
<configuration>
145+
<activeRecipes>
146+
<recipe>org.openrewrite.staticanalysis.RemoveUnusedPrivateMethods</recipe>
147+
<recipe>org.openrewrite.staticanalysis.ModifierOrder</recipe>
148+
</activeRecipes>
149+
<exportDatatables>true</exportDatatables>
150+
<failOnDryRunResults>true</failOnDryRunResults>
151+
</configuration>
152+
<executions>
153+
<execution>
154+
<phase>verify</phase>
155+
<goals>
156+
<goal>dryRun</goal>
157+
</goals>
158+
</execution>
159+
</executions>
160+
<dependencies>
161+
<dependency>
162+
<groupId>org.openrewrite.recipe</groupId>
163+
<artifactId>rewrite-static-analysis</artifactId>
164+
<version>2.14.0</version>
165+
</dependency>
166+
</dependencies>
167+
</plugin>
168+
<plugin>
137169
<artifactId>maven-antrun-plugin</artifactId>
138170
<version>1.6</version>
139171
</plugin>

0 commit comments

Comments
 (0)