diff options
| author | Otavio Salvador <otavio@ossystems.com.br> | 2026-07-12 05:34:57 -0300 |
|---|---|---|
| committer | Otavio Salvador <otavio@ossystems.com.br> | 2026-07-12 05:34:57 -0300 |
| commit | dde725228f4fee159cca3c58e4cbc8cb2793fa2e (patch) | |
| tree | 075d9b1eea56d937023a8341af046f990c05de6e | |
| parent | a6796bb08a5aca53be904fc4c82c054067b832f2 (diff) | |
| download | meta-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-- | .editorconfig | 32 |
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. | ||
| 7 | root = true | ||
| 8 | |||
| 9 | [*] | ||
| 10 | end_of_line = lf | ||
| 11 | insert_final_newline = true | ||
| 12 | trim_trailing_whitespace = true | ||
| 13 | charset = utf-8 | ||
| 14 | indent_style = space | ||
| 15 | indent_size = 4 | ||
| 16 | |||
| 17 | # Makefiles require literal tabs. | ||
| 18 | [Makefile] | ||
| 19 | indent_style = tab | ||
| 20 | |||
| 21 | # Markdown uses trailing whitespace for hard line breaks. | ||
| 22 | [*.md] | ||
| 23 | trim_trailing_whitespace = false | ||
| 24 | |||
| 25 | # Never normalise patches — their bytes must match upstream exactly. | ||
| 26 | [*.{patch,diff}] | ||
| 27 | end_of_line = unset | ||
| 28 | insert_final_newline = unset | ||
| 29 | trim_trailing_whitespace = unset | ||
| 30 | charset = unset | ||
| 31 | indent_style = unset | ||
| 32 | indent_size = unset | ||
