From 615503587fd3c5dcc3422fb4faab7d03ed7fda42 Mon Sep 17 00:00:00 2001 From: Nate Danner Date: Fri, 1 Nov 2024 21:06:57 +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 | 6 ------ src/testWithStruts6/java/.editorconfig | 6 ------ 3 files changed, 9 insertions(+), 12 deletions(-) create mode 100644 .editorconfig delete mode 100644 src/test/java/.editorconfig delete mode 100644 src/testWithStruts6/java/.editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..7a7ad4c --- /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 42a5c01..0000000 --- a/src/test/java/.editorconfig +++ /dev/null @@ -1,6 +0,0 @@ -root = true - -# Limit continuation indent to 2 spaces for Java files, as we heavily use continuations around our text blocks. -[*.java] -indent_size = 4 -ij_continuation_indent_size = 2 diff --git a/src/testWithStruts6/java/.editorconfig b/src/testWithStruts6/java/.editorconfig deleted file mode 100644 index 42a5c01..0000000 --- a/src/testWithStruts6/java/.editorconfig +++ /dev/null @@ -1,6 +0,0 @@ -root = true - -# Limit continuation indent to 2 spaces for Java files, as we heavily use continuations around our text blocks. -[*.java] -indent_size = 4 -ij_continuation_indent_size = 2