From 7a31c27f6e728f4b206f1737643f1437c1701bd8 Mon Sep 17 00:00:00 2001 From: Nate Danner Date: Fri, 1 Nov 2024 21:06:54 +0000 Subject: [PATCH] refactor: Standardize `.editorconfig` Use this link to re-run the recipe: https://app.moderne.io/builder/N3MJaFjMF?organizationId=T3BlblJld3JpdGU%3D Co-authored-by: Moderne --- .editorconfig | 9 +++++++++ src/test/java/.editorconfig | 5 ----- src/test/java/org/openrewrite/kotlin/.editorconfig | 6 ------ src/test/java/org/openrewrite/kotlin/tree/.editorconfig | 6 ------ 4 files changed, 9 insertions(+), 17 deletions(-) create mode 100644 .editorconfig delete mode 100644 src/test/java/.editorconfig delete mode 100644 src/test/java/org/openrewrite/kotlin/.editorconfig delete mode 100644 src/test/java/org/openrewrite/kotlin/tree/.editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..7a7ad4c70 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*] +insert_final_newline = true +trim_trailing_whitespace = true + +[src/test*/java/**.java] +indent_size = 4 +ij_continuation_indent_size = 2 diff --git a/src/test/java/.editorconfig b/src/test/java/.editorconfig deleted file mode 100644 index a4824935e..000000000 --- a/src/test/java/.editorconfig +++ /dev/null @@ -1,5 +0,0 @@ -root = true - -[*.java] -indent_size = 4 -ij_continuation_indent_size = 2 diff --git a/src/test/java/org/openrewrite/kotlin/.editorconfig b/src/test/java/org/openrewrite/kotlin/.editorconfig deleted file mode 100644 index 651d2d6d2..000000000 --- a/src/test/java/org/openrewrite/kotlin/.editorconfig +++ /dev/null @@ -1,6 +0,0 @@ -root = true - -[*.java] -indent_size = 4 -ij_continuation_indent_size = 2 -# ij_continuation_indent_size = 8 diff --git a/src/test/java/org/openrewrite/kotlin/tree/.editorconfig b/src/test/java/org/openrewrite/kotlin/tree/.editorconfig deleted file mode 100644 index 651d2d6d2..000000000 --- a/src/test/java/org/openrewrite/kotlin/tree/.editorconfig +++ /dev/null @@ -1,6 +0,0 @@ -root = true - -[*.java] -indent_size = 4 -ij_continuation_indent_size = 2 -# ij_continuation_indent_size = 8