[edk2-devel] [PATCH 1/1] Add a .editorconfig file to tell editors basic formatting details

Ard Biesheuvel ardb at kernel.org
Mon Feb 27 08:04:01 UTC 2023


On Mon, 27 Feb 2023 at 04:47, Rebecca Cran <rebecca at bsdio.com> wrote:
>
> Add a .editorconfig file which editors can use for basic formatting
> details of files, such as tabs/spaces, line endings etc.
>
> Signed-off-by: Rebecca Cran <rebecca at bsdio.com>

Thank you very much for this - this is very useful.

Acked-by: Ard Biesheuvel <ardb at kernel.org>

Could we add .dsc/.inf/.dec/etc files as well?

> ---
>  .editorconfig | 21 ++++++++++++++++++++
>  1 file changed, 21 insertions(+)
>
> diff --git a/.editorconfig b/.editorconfig
> new file mode 100644
> index 000000000000..f2651d7ad871
> --- /dev/null
> +++ b/.editorconfig
> @@ -0,0 +1,21 @@
> +# EditorConfig file: https://EditorConfig.org
> +
> +root = true
> +
> +[*]
> +charset = latin1
> +end_of_line = crlf
> +insert_final_newline = true
> +trim_trailing_whitespace = true
> +
> +[*.py]
> +charset = utf-8
> +indent_style = space
> +indent_size = 4
> +
> +[Makefile,GNUmakefile]
> +indent_style = tab
> +
> +[*.{c,h,cpp,cc}]
> +indent_style = space
> +indent_size = 2
> --
> 2.37.1 (Apple Git-137.1)
>
>
>
> 
>
>


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#100508): https://edk2.groups.io/g/devel/message/100508
Mute This Topic: https://groups.io/mt/97259592/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list