Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# EditorConfig — https://editorconfig.org
# Complements .clang-format for non-C++ files

root = true

[*]
indent_style = space
indent_size = 4
end_of_line = crlf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
Comment on lines +6 to +12
Copy link

Copilot AI Apr 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

end_of_line = crlf is applied globally, which conflicts with existing LF-terminated Linux shell scripts (e.g., test/linux/unit_tests/build_tests.sh) and can break execution on Unix-like systems if editors rewrite them to CRLF. Please add per-file overrides (at least *.sh/*.bash/*.py/*.cmake -> LF) or change the default to LF and opt-in CRLF only for Windows-specific file types (e.g., .resw, .idl, .ps1).

Copilot uses AI. Check for mistakes.

[*.{cpp,h,hpp,c,idl}]
# C/C++ formatting is handled by .clang-format
indent_size = 4

[*.{yml,yaml}]
indent_size = 2

[*.{json,jsonc}]
indent_size = 2

[*.{md,markdown}]
trim_trailing_whitespace = false

[*.py]
indent_size = 4

[*.{ps1,psm1,psd1}]
indent_size = 4

[*.{xml,resw,resx,props,targets,nuspec}]
indent_size = 2

[*.cmake]
indent_size = 4

[CMakeLists.txt]
indent_size = 4

[Makefile]
indent_style = tab
Loading
Loading