blob: 07fc62990aa489eb37ee2246091a9ab00741b5f3 [file] [log] [blame]
Carlos Stuart00881752019-02-02 12:07:49 +00001# EditorConfig: https://editorconfig.org/
2
3# top-most EditorConfig file
4root = true
5
6# All (Defaults)
7[*]
8charset = utf-8
9end_of_line = lf
Ulf Magnusson3a8db552019-04-09 17:45:05 +020010insert_final_newline = true
Carlos Stuart00881752019-02-02 12:07:49 +000011trim_trailing_whitespace = true
Christian Taedcke169f4862020-02-12 13:17:52 +010012max_line_length = 80
Carlos Stuart00881752019-02-02 12:07:49 +000013
Stephanos Ioannidis2c6c8552020-03-18 09:47:07 +090014# Assembly
15[*.S]
16indent_style = tab
17indent_size = 8
18
Carlos Stuart00881752019-02-02 12:07:49 +000019# 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
Mikkel Jakobsen8bbca5a2020-03-25 14:31:23 +010035[*.{yml,yaml}]
Carlos Stuart00881752019-02-02 12:07:49 +000036indent_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]
Ulf Magnusson3a8db552019-04-09 17:45:05 +020062indent_style = tab
Mikkel Jakobsen85e49432020-04-27 09:04:16 +020063
64# Device tree
65[*.{dts,dtsi,overlay}]
66indent_style = tab
67indent_size = 8
Henrik Brix Andersen48f43b52020-06-20 23:44:27 +020068
69# Git commit messages
70[COMMIT_EDITMSG]
71max_line_length = 72
Henrik Brix Andersen736fcbe2020-07-08 20:29:58 +020072
73# Kconfig
74[Kconfig*]
75indent_style=tab