From e262971ff1648d9c1b18f151ce5dc9b2cf924ec9 Mon Sep 17 00:00:00 2001 From: Joseph Weiner Date: Wed, 25 Nov 2026 11:40:25 -0500 Subject: [PATCH 1/2] docs: add conservative EditorConfig defaults --- .editorconfig | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..923cb7c068 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,15 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true + +[*.{bat,cmd,ps1,sln}] +end_of_line = crlf + +[runtime/test/d3d12_depth_resolve_test.cpp] +charset = utf-8-bom + +[runtime/test/d3d12_sparse_queue_family_test.cpp] +charset = utf-8-bom From 5562c1e38f50497a9b78ea974e13216ae3bbb98e Mon Sep 17 00:00:00 2001 From: Joseph Weiner Date: Wed, 25 Nov 2026 12:29:30 -0500 Subject: [PATCH 2/2] docs: complete EditorConfig defaults --- .editorconfig | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index 923cb7c068..776edcb5d8 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,13 +1,29 @@ root = true +# Mirrors .gitattributes: LF everywhere except the Windows script and solution files, which are CRLF. [*] charset = utf-8 end_of_line = lf insert_final_newline = true +trim_trailing_whitespace = true -[*.{bat,cmd,ps1,sln}] +[*.ps1] end_of_line = crlf +[*.cmd] +end_of_line = crlf + +[*.bat] +end_of_line = crlf + +[*.sln] +end_of_line = crlf + +# Two trailing spaces are a hard line break in Markdown. +[*.md] +trim_trailing_whitespace = false + +# These existing test sources carry a UTF-8 BOM. [runtime/test/d3d12_depth_resolve_test.cpp] charset = utf-8-bom