Skip to content

Commit 740f1c8

Browse files
author
Vincent Potucek
committed
rewrite-maven-plugin
1 parent d0cc9d8 commit 740f1c8

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

independent-projects/parent/pom.xml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
<version.plugin.plugin>3.15.1</version.plugin.plugin>
3636
<version.release.plugin>3.1.1</version.release.plugin>
3737
<version.resources.plugin>3.3.1</version.resources.plugin>
38+
<version.rewrite.plugin>6.10.0</version.rewrite.plugin>
39+
<version.rewrite.static.analysis>2.10.0</version.rewrite.static.analysis>
3840
<!-- Do not update for now as it is causing test issues in integration-tests/devmode
3941
java.lang.NoClassDefFoundError: com/salesforce/jprotoc/Generator -->
4042
<version.shade.plugin>3.2.1</version.shade.plugin>
@@ -361,6 +363,34 @@
361363
</archive>
362364
</configuration>
363365
</plugin>
366+
<plugin>
367+
<groupId>org.openrewrite.maven</groupId>
368+
<artifactId>rewrite-maven-plugin</artifactId>
369+
<version>${version.rewrite.plugin}</version>
370+
<configuration>
371+
<activeRecipes>
372+
<recipe>org.openrewrite.staticanalysis.MissingOverrideAnnotation</recipe>
373+
<!-- <recipe>org.openrewrite.staticanalysis.NoToStringOnStringType</recipe>-->
374+
<!-- <recipe>org.openrewrite.staticanalysis.NoValueOfOnStringType</recipe>-->
375+
<!-- <recipe>org.openrewrite.staticanalysis.RemoveUnusedLocalVariables</recipe>-->
376+
<!-- <recipe>org.openrewrite.staticanalysis.RemoveUnusedPrivateFields</recipe>-->
377+
<!-- <recipe>org.openrewrite.staticanalysis.RemoveUnusedPrivateMethods</recipe>-->
378+
<!-- <recipe>org.openrewrite.staticanalysis.UnnecessaryCloseInTryWithResources</recipe>-->
379+
<!-- <recipe>org.openrewrite.staticanalysis.UnnecessaryExplicitTypeArguments</recipe>-->
380+
<!-- <recipe>org.openrewrite.staticanalysis.UnnecessaryReturnAsLastStatement</recipe>-->
381+
<!-- <recipe>org.openrewrite.staticanalysis.UnnecessaryThrows</recipe>-->
382+
</activeRecipes>
383+
<failOnDryRunResults>true</failOnDryRunResults>
384+
<rewriteSkip>${format.skip}</rewriteSkip>
385+
</configuration>
386+
<dependencies>
387+
<dependency>
388+
<groupId>org.openrewrite.recipe</groupId>
389+
<artifactId>rewrite-static-analysis</artifactId>
390+
<version>${version.rewrite.static.analysis}</version>
391+
</dependency>
392+
</dependencies>
393+
</plugin>
364394
<plugin>
365395
<groupId>net.revelc.code.formatter</groupId>
366396
<artifactId>formatter-maven-plugin</artifactId>
@@ -633,6 +663,18 @@
633663
</activation>
634664
<build>
635665
<plugins>
666+
<plugin>
667+
<groupId>org.openrewrite.maven</groupId>
668+
<artifactId>rewrite-maven-plugin</artifactId>
669+
<executions>
670+
<execution>
671+
<phase>process-sources</phase>
672+
<goals>
673+
<goal>run</goal>
674+
</goals>
675+
</execution>
676+
</executions>
677+
</plugin>
636678
<plugin>
637679
<groupId>net.revelc.code.formatter</groupId>
638680
<artifactId>formatter-maven-plugin</artifactId>

0 commit comments

Comments
 (0)