Files
ZephCore/.editorconfig
T

56 lines
1.4 KiB
INI

# https://editorconfig.org
root = true
# Defaults: LF everywhere, tabs for indentation. `.gitattributes` mirrors the
# LF default as Git's normalization fallback.
#
# Tab width is 8, the Zephyr convention: existing "tab indent + space
# alignment" continuation lines in the tree only line up at width 8.
[*]
charset = utf-8
end_of_line = lf
indent_style = tab
indent_size = tab
tab_width = 8
insert_final_newline = true
trim_trailing_whitespace = true
# Markdown: trailing double-space is a hard line break.
[*.md]
trim_trailing_whitespace = false
# Patches: context lines and blank-line markers carry significant whitespace.
[*.{patch,diff}]
trim_trailing_whitespace = false
insert_final_newline = unset
indent_style = unset
indent_size = unset
# YAML cannot be indented with tabs.
[*.{yml,yaml}]
indent_style = space
indent_size = 2
# Python, shell and PowerShell: 4 spaces, matching their tree-wide use.
[*.{py,sh,ps1}]
indent_style = space
indent_size = 4
# CMake: spaces. Width is left to the file (the main CMakeLists.txt nests in
# 2s, the tool apps in 4s).
[{CMakeLists.txt,*.cmake}]
indent_style = space
indent_size = unset
# Third-party license texts are kept verbatim.
[{LICENSE,*LICENSE*.txt,*_license.txt}]
indent_style = unset
indent_size = unset
trim_trailing_whitespace = unset
insert_final_newline = unset
# Windows batch and command scripts: the one CRLF exception to the LF default.
[*.{bat,cmd}]
end_of_line = crlf