diff options
Diffstat (limited to '.editorconfig')
| -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 | ||
