blob: 988cb95f5e42ea622170f21c3db1c508b60b9ddf [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
Stephanos Ioannidis9c250092022-04-28 02:48:32 +090012max_line_length = 100
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
Stephanos Ioannidis3a7cf872022-04-28 16:51:49 +090024# C++
25[*.{cpp,hpp}]
26indent_style = tab
27indent_size = 8
28
Stephanos Ioannidisef9c4f72022-04-28 15:12:59 +090029# Linker Script
30[*.ld]
31indent_style = tab
32indent_size = 8
33
Carlos Stuart00881752019-02-02 12:07:49 +000034# Python
35[*.py]
36indent_style = space
37indent_size = 4
38
39# Perl
40[*.pl]
41indent_style = tab
42indent_size = 8
43
Stephanos Ioannidis380bf3a2022-04-28 02:56:09 +090044# reStructuredText
45[*.rst]
46indent_style = space
47indent_size = 3
48
Carlos Stuart00881752019-02-02 12:07:49 +000049# YAML
Mikkel Jakobsen8bbca5a2020-03-25 14:31:23 +010050[*.{yml,yaml}]
Carlos Stuart00881752019-02-02 12:07:49 +000051indent_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]
Ulf Magnusson3a8db552019-04-09 17:45:05 +020077indent_style = tab
Stephanos Ioannidis9b1a0e72022-04-28 16:59:11 +090078indent_size = 8
Mikkel Jakobsen85e49432020-04-27 09:04:16 +020079
80# Device tree
81[*.{dts,dtsi,overlay}]
82indent_style = tab
83indent_size = 8
Henrik Brix Andersen48f43b52020-06-20 23:44:27 +020084
85# Git commit messages
86[COMMIT_EDITMSG]
Stephanos Ioannidis5d8f1de2022-04-28 02:52:10 +090087max_line_length = 75
Henrik Brix Andersen736fcbe2020-07-08 20:29:58 +020088
89# Kconfig
90[Kconfig*]
Stephanos Ioannidis9b1a0e72022-04-28 16:59:11 +090091indent_style = tab
92indent_size = 8