Add an .editorconfig file instead of "noet ts=8 sw=8" vim modeline.
Some code editors have builtin support and others need a plugin or an extention. VS Code require an editorconfig extention. Check all files on Fedora from ptxdist git root directory: podman run -it --rm --volume="$PWD:/check:z" mstruebing/editorconfig-checker Check a subset of files on Fedora from ptxdist git root directory: podman run -it --rm --volume="$PWD:/check:z" mstruebing/editorconfig-checker ec rules/templates/*-make Remove :z on Debian/Ubuntu. On older hosts it's also possible to replace podman with docker. Signed-off-by: Bruno Thomsen <[email protected]> --- v1 -> v2: Add .editorconfig following mailing list discussion .editorconfig | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..aa99f8b0c --- /dev/null +++ b/.editorconfig @@ -0,0 +1,22 @@ +root = true + +[*] +indent_style = tab +tab_width = 8 +indent_size = 8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +# kconfig uses a mix of tab and spaces in help section +[*{.in,-in}] +indent_style = unset + +[*.sh] +indent_size = 4 + +[*.py] +indent_style = space +tab_width = 4 +indent_size = 4 + -- 2.50.1
