From b873377963ee4a66a4fd3280741fb4be2ee42e2e Mon Sep 17 00:00:00 2001 From: NickSdot Date: Sat, 5 Sep 2026 22:28:06 +0800 Subject: [PATCH 1/2] chore: added unified .editorconfig and .gitattributes --- .editorconfig | 12 ++++++++++++ .gitattributes | 1 + 2 files changed, 13 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitattributes diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..5ab5087 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +; This file is for unifying the coding style for different editors and IDEs. +; More information at https://editorconfig.org + +root = true + +[*.xml] +charset = utf-8 +indent_size = 1 +indent_style = space +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = false diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6313b56 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf From 11246f950f7505d3fd1f213ffe50b676b61a8260 Mon Sep 17 00:00:00 2001 From: NickSdot Date: Sat, 5 Sep 2026 23:52:15 +0800 Subject: [PATCH 2/2] review: activated trailing whitespace trim --- .editorconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index 5ab5087..02c4fef 100644 --- a/.editorconfig +++ b/.editorconfig @@ -9,4 +9,4 @@ indent_size = 1 indent_style = space end_of_line = lf insert_final_newline = true -trim_trailing_whitespace = false +trim_trailing_whitespace = true