Skip to content

Keep formatting in case of newline only change #249

@koppor

Description

@koppor

I think, the following diff is only a newline diff.

             );
         } catch (FetcherException e) {
-            LOGGER.error(
-                "FetcherException should not be found here, as main Bibtex Entry already exists "
-                + "(and failing additional fetches should be skipped)",
-                e
+            LOGGER.error("FetcherException should not be found here, as main Bibtex Entry already exists " + "(and failing additional fetches should be skipped)", e
             );
         }
     }

I am going to use prettier-java with 80 column width. And now OpenRewrite and prettier-java "fight" about proper formatting.

I think, a solution of that could be if OpenRewrite does not change the AST if there are only whitespace changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions