Thanks, applied as 34fc073c955f51db7e1fb2b36b6e47b421342b8b.

Michael

[sent from post-receive hook]

On Tue, 05 Aug 2025 06:59:51 +0200, Bruno Thomsen <[email protected]> 
wrote:
> 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 --rm --volume="$PWD:/check:z" mstruebing/editorconfig-checker
> 
> Check a subset of files on Fedora from ptxdist git root directory:
> podman run --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]>
> Message-Id: <[email protected]>
> Signed-off-by: Michael Olbrich <[email protected]>
> 
> diff --git a/.editorconfig b/.editorconfig
> new file mode 100644
> index 000000000000..aa99f8b0c55f
> --- /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
> +

Reply via email to