summaryrefslogtreecommitdiffstats
path: root/.editorconfig
diff options
context:
space:
mode:
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig32
1 files changed, 32 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 000000000..51367ad58
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,32 @@
1# EditorConfig: deterministic whitespace enforcement for a Yocto/OE layer.
2# https://editorconfig.org — every modern editor applies these on save, and CI
3# can gate them with `editorconfig-checker`. Mirrors meta-openembedded's config
4# and the Yocto Recipe Style Guide: spaces, 4 wide, no tabs, trimmed, LF, final
5# newline. This complements oelint-adv (which handles semantic rules) and removes
6# the need for oelint's non-deterministic whitespace auto-fixes.
7root = true
8
9[*]
10end_of_line = lf
11insert_final_newline = true
12trim_trailing_whitespace = true
13charset = utf-8
14indent_style = space
15indent_size = 4
16
17# Makefiles require literal tabs.
18[Makefile]
19indent_style = tab
20
21# Markdown uses trailing whitespace for hard line breaks.
22[*.md]
23trim_trailing_whitespace = false
24
25# Never normalise patches — their bytes must match upstream exactly.
26[*.{patch,diff}]
27end_of_line = unset
28insert_final_newline = unset
29trim_trailing_whitespace = unset
30charset = unset
31indent_style = unset
32indent_size = unset