From 891b428f24a99919ba94e5219a45a32232d3118d Mon Sep 17 00:00:00 2001 From: Nate Danner Date: Fri, 1 Nov 2024 21:07:46 +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/testWithSpringBoot_1_5/java/.editorconfig | 5 ----- src/testWithSpringBoot_2_1/java/.editorconfig | 5 ----- src/testWithSpringBoot_2_2/java/.editorconfig | 5 ----- src/testWithSpringBoot_2_3/java/.editorconfig | 5 ----- src/testWithSpringBoot_2_4/java/.editorconfig | 5 ----- src/testWithSpringBoot_2_5/java/.editorconfig | 5 ----- src/testWithSpringBoot_2_7/java/.editorconfig | 5 ----- src/testWithSpringBoot_3_0/java/.editorconfig | 5 ----- .../java/org/openrewrite/java/spring/.editorconfig | 5 ----- .../java/org/openrewrite/java/spring/boot3/.editorconfig | 5 ----- .../java/org/openrewrite/java/spring/boot3/.editorconfig | 5 ----- .../java/org/openrewrite/spring/security5/.editorconfig | 5 ----- .../java/org/openrewrite/spring/security5/.editorconfig | 5 ----- .../java/org/openrewrite/spring/security6/.editorconfig | 5 ----- 16 files changed, 9 insertions(+), 75 deletions(-) create mode 100644 .editorconfig delete mode 100644 src/test/java/.editorconfig delete mode 100644 src/testWithSpringBoot_1_5/java/.editorconfig delete mode 100644 src/testWithSpringBoot_2_1/java/.editorconfig delete mode 100644 src/testWithSpringBoot_2_2/java/.editorconfig delete mode 100644 src/testWithSpringBoot_2_3/java/.editorconfig delete mode 100644 src/testWithSpringBoot_2_4/java/.editorconfig delete mode 100644 src/testWithSpringBoot_2_5/java/.editorconfig delete mode 100644 src/testWithSpringBoot_2_7/java/.editorconfig delete mode 100644 src/testWithSpringBoot_3_0/java/.editorconfig delete mode 100644 src/testWithSpringBoot_3_0/java/org/openrewrite/java/spring/.editorconfig delete mode 100644 src/testWithSpringBoot_3_2/java/org/openrewrite/java/spring/boot3/.editorconfig delete mode 100644 src/testWithSpringBoot_3_3/java/org/openrewrite/java/spring/boot3/.editorconfig delete mode 100644 src/testWithSpringSecurity_5_7/java/org/openrewrite/spring/security5/.editorconfig delete mode 100644 src/testWithSpringSecurity_5_8/java/org/openrewrite/spring/security5/.editorconfig delete mode 100644 src/testWithSpringSecurity_6_2/java/org/openrewrite/spring/security6/.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/testWithSpringBoot_1_5/java/.editorconfig b/src/testWithSpringBoot_1_5/java/.editorconfig deleted file mode 100644 index a4824935e..000000000 --- a/src/testWithSpringBoot_1_5/java/.editorconfig +++ /dev/null @@ -1,5 +0,0 @@ -root = true - -[*.java] -indent_size = 4 -ij_continuation_indent_size = 2 diff --git a/src/testWithSpringBoot_2_1/java/.editorconfig b/src/testWithSpringBoot_2_1/java/.editorconfig deleted file mode 100644 index a4824935e..000000000 --- a/src/testWithSpringBoot_2_1/java/.editorconfig +++ /dev/null @@ -1,5 +0,0 @@ -root = true - -[*.java] -indent_size = 4 -ij_continuation_indent_size = 2 diff --git a/src/testWithSpringBoot_2_2/java/.editorconfig b/src/testWithSpringBoot_2_2/java/.editorconfig deleted file mode 100644 index a4824935e..000000000 --- a/src/testWithSpringBoot_2_2/java/.editorconfig +++ /dev/null @@ -1,5 +0,0 @@ -root = true - -[*.java] -indent_size = 4 -ij_continuation_indent_size = 2 diff --git a/src/testWithSpringBoot_2_3/java/.editorconfig b/src/testWithSpringBoot_2_3/java/.editorconfig deleted file mode 100644 index a4824935e..000000000 --- a/src/testWithSpringBoot_2_3/java/.editorconfig +++ /dev/null @@ -1,5 +0,0 @@ -root = true - -[*.java] -indent_size = 4 -ij_continuation_indent_size = 2 diff --git a/src/testWithSpringBoot_2_4/java/.editorconfig b/src/testWithSpringBoot_2_4/java/.editorconfig deleted file mode 100644 index a4824935e..000000000 --- a/src/testWithSpringBoot_2_4/java/.editorconfig +++ /dev/null @@ -1,5 +0,0 @@ -root = true - -[*.java] -indent_size = 4 -ij_continuation_indent_size = 2 diff --git a/src/testWithSpringBoot_2_5/java/.editorconfig b/src/testWithSpringBoot_2_5/java/.editorconfig deleted file mode 100644 index a4824935e..000000000 --- a/src/testWithSpringBoot_2_5/java/.editorconfig +++ /dev/null @@ -1,5 +0,0 @@ -root = true - -[*.java] -indent_size = 4 -ij_continuation_indent_size = 2 diff --git a/src/testWithSpringBoot_2_7/java/.editorconfig b/src/testWithSpringBoot_2_7/java/.editorconfig deleted file mode 100644 index a4824935e..000000000 --- a/src/testWithSpringBoot_2_7/java/.editorconfig +++ /dev/null @@ -1,5 +0,0 @@ -root = true - -[*.java] -indent_size = 4 -ij_continuation_indent_size = 2 diff --git a/src/testWithSpringBoot_3_0/java/.editorconfig b/src/testWithSpringBoot_3_0/java/.editorconfig deleted file mode 100644 index a4824935e..000000000 --- a/src/testWithSpringBoot_3_0/java/.editorconfig +++ /dev/null @@ -1,5 +0,0 @@ -root = true - -[*.java] -indent_size = 4 -ij_continuation_indent_size = 2 diff --git a/src/testWithSpringBoot_3_0/java/org/openrewrite/java/spring/.editorconfig b/src/testWithSpringBoot_3_0/java/org/openrewrite/java/spring/.editorconfig deleted file mode 100644 index a4824935e..000000000 --- a/src/testWithSpringBoot_3_0/java/org/openrewrite/java/spring/.editorconfig +++ /dev/null @@ -1,5 +0,0 @@ -root = true - -[*.java] -indent_size = 4 -ij_continuation_indent_size = 2 diff --git a/src/testWithSpringBoot_3_2/java/org/openrewrite/java/spring/boot3/.editorconfig b/src/testWithSpringBoot_3_2/java/org/openrewrite/java/spring/boot3/.editorconfig deleted file mode 100644 index a4824935e..000000000 --- a/src/testWithSpringBoot_3_2/java/org/openrewrite/java/spring/boot3/.editorconfig +++ /dev/null @@ -1,5 +0,0 @@ -root = true - -[*.java] -indent_size = 4 -ij_continuation_indent_size = 2 diff --git a/src/testWithSpringBoot_3_3/java/org/openrewrite/java/spring/boot3/.editorconfig b/src/testWithSpringBoot_3_3/java/org/openrewrite/java/spring/boot3/.editorconfig deleted file mode 100644 index a4824935e..000000000 --- a/src/testWithSpringBoot_3_3/java/org/openrewrite/java/spring/boot3/.editorconfig +++ /dev/null @@ -1,5 +0,0 @@ -root = true - -[*.java] -indent_size = 4 -ij_continuation_indent_size = 2 diff --git a/src/testWithSpringSecurity_5_7/java/org/openrewrite/spring/security5/.editorconfig b/src/testWithSpringSecurity_5_7/java/org/openrewrite/spring/security5/.editorconfig deleted file mode 100644 index 4866b437c..000000000 --- a/src/testWithSpringSecurity_5_7/java/org/openrewrite/spring/security5/.editorconfig +++ /dev/null @@ -1,5 +0,0 @@ -root = true - -[*.java] -indent_size = 4 -ij_continuation_indent_size = 2 \ No newline at end of file diff --git a/src/testWithSpringSecurity_5_8/java/org/openrewrite/spring/security5/.editorconfig b/src/testWithSpringSecurity_5_8/java/org/openrewrite/spring/security5/.editorconfig deleted file mode 100644 index 4866b437c..000000000 --- a/src/testWithSpringSecurity_5_8/java/org/openrewrite/spring/security5/.editorconfig +++ /dev/null @@ -1,5 +0,0 @@ -root = true - -[*.java] -indent_size = 4 -ij_continuation_indent_size = 2 \ No newline at end of file diff --git a/src/testWithSpringSecurity_6_2/java/org/openrewrite/spring/security6/.editorconfig b/src/testWithSpringSecurity_6_2/java/org/openrewrite/spring/security6/.editorconfig deleted file mode 100644 index a4824935e..000000000 --- a/src/testWithSpringSecurity_6_2/java/org/openrewrite/spring/security6/.editorconfig +++ /dev/null @@ -1,5 +0,0 @@ -root = true - -[*.java] -indent_size = 4 -ij_continuation_indent_size = 2