|
35 | 35 | <version.plugin.plugin>3.15.1</version.plugin.plugin> |
36 | 36 | <version.release.plugin>3.1.1</version.release.plugin> |
37 | 37 | <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> |
38 | 40 | <!-- Do not update for now as it is causing test issues in integration-tests/devmode |
39 | 41 | java.lang.NoClassDefFoundError: com/salesforce/jprotoc/Generator --> |
40 | 42 | <version.shade.plugin>3.2.1</version.shade.plugin> |
|
361 | 363 | </archive> |
362 | 364 | </configuration> |
363 | 365 | </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> |
364 | 394 | <plugin> |
365 | 395 | <groupId>net.revelc.code.formatter</groupId> |
366 | 396 | <artifactId>formatter-maven-plugin</artifactId> |
|
633 | 663 | </activation> |
634 | 664 | <build> |
635 | 665 | <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> |
636 | 678 | <plugin> |
637 | 679 | <groupId>net.revelc.code.formatter</groupId> |
638 | 680 | <artifactId>formatter-maven-plugin</artifactId> |
|
0 commit comments