1# EditorConfig: https://editorconfig.org/ 2 3# top-most EditorConfig file 4root = true 5 6# All (Defaults) 7[*] 8charset = utf-8 9end_of_line = lf 10insert_final_newline = true 11trim_trailing_whitespace = true 12max_line_length = 100 13 14# Assembly 15[*.S] 16indent_style = tab 17indent_size = 8 18 19# C 20[*.{c,h}] 21indent_style = tab 22indent_size = 8 23 24# C++ 25[*.{cpp,hpp}] 26indent_style = tab 27indent_size = 8 28 29# Linker Script 30[*.ld] 31indent_style = tab 32indent_size = 8 33 34# Python 35[*.py] 36indent_style = space 37indent_size = 4 38 39# Perl 40[*.pl] 41indent_style = tab 42indent_size = 8 43 44# reStructuredText 45[*.rst] 46indent_style = space 47indent_size = 3 48 49# YAML 50[*.{yml,yaml}] 51indent_style = space 52indent_size = 2 53 54# Shell Script 55[*.sh] 56indent_style = space 57indent_size = 4 58 59# Windows Command Script 60[*.cmd] 61end_of_line = crlf 62indent_style = tab 63indent_size = 8 64 65# Valgrind Suppression File 66[*.supp] 67indent_style = space 68indent_size = 3 69 70# CMake 71[{CMakeLists.txt,*.cmake}] 72indent_style = space 73indent_size = 2 74 75# Makefile 76[Makefile] 77indent_style = tab 78indent_size = 8 79 80# Device tree 81[*.{dts,dtsi,overlay}] 82indent_style = tab 83indent_size = 8 84 85# Git commit messages 86[COMMIT_EDITMSG] 87max_line_length = 75 88 89# Kconfig 90[Kconfig*] 91indent_style = tab 92indent_size = 8 93