2019-02-02 20:07:49 +08:00
|
|
|
# EditorConfig: https://editorconfig.org/
|
|
|
|
|
|
|
|
# top-most EditorConfig file
|
|
|
|
root = true
|
|
|
|
|
|
|
|
# All (Defaults)
|
|
|
|
[*]
|
|
|
|
charset = utf-8
|
|
|
|
end_of_line = lf
|
2019-04-09 23:45:05 +08:00
|
|
|
insert_final_newline = true
|
2019-02-02 20:07:49 +08:00
|
|
|
trim_trailing_whitespace = true
|
2022-04-28 01:48:32 +08:00
|
|
|
max_line_length = 100
|
2019-02-02 20:07:49 +08:00
|
|
|
|
2020-03-18 08:47:07 +08:00
|
|
|
# Assembly
|
|
|
|
[*.S]
|
|
|
|
indent_style = tab
|
|
|
|
indent_size = 8
|
|
|
|
|
2019-02-02 20:07:49 +08:00
|
|
|
# C
|
|
|
|
[*.{c,h}]
|
|
|
|
indent_style = tab
|
|
|
|
indent_size = 8
|
|
|
|
|
2022-04-28 15:51:49 +08:00
|
|
|
# C++
|
|
|
|
[*.{cpp,hpp}]
|
|
|
|
indent_style = tab
|
|
|
|
indent_size = 8
|
|
|
|
|
2022-04-28 14:12:59 +08:00
|
|
|
# Linker Script
|
|
|
|
[*.ld]
|
|
|
|
indent_style = tab
|
|
|
|
indent_size = 8
|
|
|
|
|
2019-02-02 20:07:49 +08:00
|
|
|
# Python
|
|
|
|
[*.py]
|
|
|
|
indent_style = space
|
|
|
|
indent_size = 4
|
|
|
|
|
|
|
|
# Perl
|
|
|
|
[*.pl]
|
|
|
|
indent_style = tab
|
|
|
|
indent_size = 8
|
|
|
|
|
2022-04-28 01:56:09 +08:00
|
|
|
# reStructuredText
|
|
|
|
[*.rst]
|
|
|
|
indent_style = space
|
|
|
|
indent_size = 3
|
|
|
|
|
2019-02-02 20:07:49 +08:00
|
|
|
# YAML
|
2020-03-25 21:31:23 +08:00
|
|
|
[*.{yml,yaml}]
|
2019-02-02 20:07:49 +08:00
|
|
|
indent_style = space
|
|
|
|
indent_size = 2
|
|
|
|
|
|
|
|
# Shell Script
|
|
|
|
[*.sh]
|
|
|
|
indent_style = space
|
|
|
|
indent_size = 4
|
|
|
|
|
|
|
|
# Windows Command Script
|
|
|
|
[*.cmd]
|
|
|
|
end_of_line = crlf
|
|
|
|
indent_style = tab
|
|
|
|
indent_size = 8
|
|
|
|
|
|
|
|
# Valgrind Suppression File
|
|
|
|
[*.supp]
|
|
|
|
indent_style = space
|
|
|
|
indent_size = 3
|
|
|
|
|
|
|
|
# CMake
|
|
|
|
[{CMakeLists.txt,*.cmake}]
|
|
|
|
indent_style = space
|
|
|
|
indent_size = 2
|
|
|
|
|
|
|
|
# Makefile
|
|
|
|
[Makefile]
|
2019-04-09 23:45:05 +08:00
|
|
|
indent_style = tab
|
2022-04-28 15:59:11 +08:00
|
|
|
indent_size = 8
|
2020-04-27 15:04:16 +08:00
|
|
|
|
|
|
|
# Device tree
|
|
|
|
[*.{dts,dtsi,overlay}]
|
|
|
|
indent_style = tab
|
|
|
|
indent_size = 8
|
2020-06-21 05:44:27 +08:00
|
|
|
|
|
|
|
# Git commit messages
|
|
|
|
[COMMIT_EDITMSG]
|
2022-04-28 01:52:10 +08:00
|
|
|
max_line_length = 75
|
2020-07-09 02:29:58 +08:00
|
|
|
|
|
|
|
# Kconfig
|
|
|
|
[Kconfig*]
|
2022-04-28 15:59:11 +08:00
|
|
|
indent_style = tab
|
|
|
|
indent_size = 8
|