xref: /linux/.editorconfig (revision be239684b18e1cdcafcf8c7face4a2f562c745ad)
1# SPDX-License-Identifier: GPL-2.0-only
2
3root = true
4
5[{*.{awk,c,dts,dtsi,dtso,h,mk,s,S},Kconfig,Makefile,Makefile.*}]
6charset = utf-8
7end_of_line = lf
8trim_trailing_whitespace = true
9insert_final_newline = true
10indent_style = tab
11indent_size = 8
12
13[*.{json,py,rs}]
14charset = utf-8
15end_of_line = lf
16trim_trailing_whitespace = true
17insert_final_newline = true
18indent_style = space
19indent_size = 4
20
21# this must be below the general *.py to overwrite it
22[tools/{perf,power,rcu,testing/kunit}/**.py,]
23indent_style = tab
24indent_size = 8
25
26[*.yaml]
27charset = utf-8
28end_of_line = lf
29trim_trailing_whitespace = unset
30insert_final_newline = true
31indent_style = space
32indent_size = 2
33