summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2026-07-12 05:34:57 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2026-07-12 05:34:57 -0300
commitdde725228f4fee159cca3c58e4cbc8cb2793fa2e (patch)
tree075d9b1eea56d937023a8341af046f990c05de6e
parenta6796bb08a5aca53be904fc4c82c054067b832f2 (diff)
downloadmeta-freescale-oelint-cleanup-1-whitespace.tar.gz
.editorconfig: Add EditorConfig for deterministic whitespaceoelint-cleanup-1-whitespace
Add an .editorconfig at the layer root encoding the Yocto Recipe Style Guide whitespace rules (spaces, 4-wide, no tabs, trimmed trailing whitespace, final newline), mirroring meta-openembedded's config. Editors apply it automatically on save and it can be gated in CI with editorconfig-checker, giving deterministic enforcement that the oelint-adv whitespace auto-fixes cannot provide. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-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