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
|
2020-02-12 20:17:52 +08:00
|
|
|
max_line_length = 80
|
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
|
|
|
|
|
|
|
|
# Python
|
|
|
|
[*.py]
|
|
|
|
indent_style = space
|
|
|
|
indent_size = 4
|
|
|
|
|
|
|
|
# Perl
|
|
|
|
[*.pl]
|
|
|
|
indent_style = tab
|
|
|
|
indent_size = 8
|
|
|
|
|
|
|
|
# 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
|
2020-04-27 15:04:16 +08:00
|
|
|
|
|
|
|
# Device tree
|
|
|
|
[*.{dts,dtsi,overlay}]
|
|
|
|
indent_style = tab
|
|
|
|
indent_size = 8
|