rewrite icon indicating copy to clipboard operation
rewrite copied to clipboard

Automated mass refactoring of source code.

Results 317 rewrite issues
Sort by recently updated
recently updated
newest added

`Anchor` and `Alias` have been added to the Yaml model, but only work on Scalar values. Anchors on Scalar keys, Sequences, and Mapping nodes will disappear. Aliases for any of...

bug

This PR enhances the Spaces formatter for HCL to take into account attribute groupings to match the formatting behavior of `terraform fmt` command. From https://www.terraform.io/language/syntax/style: When multiple arguments with single-line...

Hi, I get an exception running a `run` or `dryRun` mojo with the rewrite-maven-plugin. The project is a multi-module project with a BOM for managing dependencies. If a dependency references...

bug

Test case below -- `RemoveRedundantDependencyVersions` only touches a dependency if it has exactly the same scope as the managed dependency, but in actuality, there are valid cases where the scopes...

bug

### Problem > Describe the issue you are experiencing. ### Expected behavior A fake conditional should have been generated for Control Flow analysis. The problem is that it looks like...

bug

### Problem > Transforms recipe on the SaaS works fine when running the rewrite-maven-plugin ### Expected behavior > Removes `UnsupportedEncodingException` while the method declaration has a statement which invokes a...

bug

looking at the switch this is likely an issue using java 11 on a java 17 project discovered while investating #2101 https://github.com/spring-projects/spring-framework/blob/main/spring-aop/src/main/java/org/springframework/aop/aspectj/annotation/ReflectiveAspectJAdvisorFactory.java ```java @SuppressWarnings("serial") public class ReflectiveAspectJAdvisorFactory extends AbstractAspectJAdvisorFactory implements...

bug

The guard generated by `JavaTemplate` does not match the surrounding code. The braces should be on their own line. https://github.com/openrewrite/rewrite-java-security/blob/0f326c8d37697a9740a0463d1547f93e2d2c607e/src/test/kotlin/org/openrewrite/java/security/ZipSlipTest.kt#L1521-L1523

bug
parser-java

```java import java.io.*; import java.util.Enumeration; import java.util.jar.JarEntry; import java.util.jar.JarFile; class Test { public static void extractJAR(File file, File dest, int min, int max) throws Exception { JarFile jar = null;...

bug

Issue discovered with `src/main/java/org/apache/maven/plugins/pmd/AbstractPmdReport.java` ### Problem > Error: src/main/java/org/apache/maven/plugins/pmd/AbstractPmdReport.java:[494] (sizes) LineLength: Line is longer than 120 characters (found 124). Error: src/main/java/org/apache/maven/plugins/pmd/AbstractPmdReport.java:[494,84] (whitespace) ParenPad: '(' is not followed by whitespace. Error:...

bug