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 = 80 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# Python 25[*.py] 26indent_style = space 27indent_size = 4 28 29# Perl 30[*.pl] 31indent_style = tab 32indent_size = 8 33 34# YAML 35[*.{yml,yaml}] 36indent_style = space 37indent_size = 2 38 39# Shell Script 40[*.sh] 41indent_style = space 42indent_size = 4 43 44# Windows Command Script 45[*.cmd] 46end_of_line = crlf 47indent_style = tab 48indent_size = 8 49 50# Valgrind Suppression File 51[*.supp] 52indent_style = space 53indent_size = 3 54 55# CMake 56[{CMakeLists.txt,*.cmake}] 57indent_style = space 58indent_size = 2 59 60# Makefile 61[Makefile] 62indent_style = tab 63 64# Device tree 65[*.{dts,dtsi,overlay}] 66indent_style = tab 67indent_size = 8 68 69# Git commit messages 70[COMMIT_EDITMSG] 71max_line_length = 72 72 73# Kconfig 74[Kconfig*] 75indent_style=tab 76