public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH v2 1/1] Add a .editorconfig file to tell editors basic formatting details
@ 2023-03-01 18:19 Rebecca Cran
  2023-03-01 22:11 ` Ard Biesheuvel
  0 siblings, 1 reply; 9+ messages in thread
From: Rebecca Cran @ 2023-03-01 18:19 UTC (permalink / raw)
  To: devel, Andrew Fish, Leif Lindholm, Michael D Kinney,
	Ard Biesheuvel
  Cc: Rebecca Cran

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@bsdio.com>
---
 .editorconfig | 31 ++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 000000000000..587d5bbaa884
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,31 @@
+# EditorConfig file: https://EditorConfig.org
+
+root = true
+
+[*]
+charset = latin1
+end_of_line = crlf
+indent_style = space
+indent_size = 2
+insert_final_newline = true
+trim_trailing_whitespace = true
+
+[*.py]
+charset = utf-8
+indent_style = space
+indent_size = 4
+
+[*.sh]
+end_of_line = lf
+
+[.gitattributes]
+end_of_line = lf
+
+[.mailmap]
+charset = utf-8
+
+[Maintainers.txt]
+charset = utf-8
+
+[Makefile,GNUmakefile]
+indent_style = tab
-- 
2.37.1 (Apple Git-137.1)


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH v2 1/1] Add a .editorconfig file to tell editors basic formatting details
  2023-03-01 18:19 [PATCH v2 1/1] Add a .editorconfig file to tell editors basic formatting details Rebecca Cran
@ 2023-03-01 22:11 ` Ard Biesheuvel
  2023-09-08 15:14   ` [edk2-devel] " Ard Biesheuvel
  0 siblings, 1 reply; 9+ messages in thread
From: Ard Biesheuvel @ 2023-03-01 22:11 UTC (permalink / raw)
  To: Rebecca Cran; +Cc: devel, Andrew Fish, Leif Lindholm, Michael D Kinney

On Wed, 1 Mar 2023 at 19:19, Rebecca Cran <rebecca@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@bsdio.com>

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>

Thanks!

> ---
>  .editorconfig | 31 ++++++++++++++++++++
>  1 file changed, 31 insertions(+)
>
> diff --git a/.editorconfig b/.editorconfig
> new file mode 100644
> index 000000000000..587d5bbaa884
> --- /dev/null
> +++ b/.editorconfig
> @@ -0,0 +1,31 @@
> +# EditorConfig file: https://EditorConfig.org
> +
> +root = true
> +
> +[*]
> +charset = latin1
> +end_of_line = crlf
> +indent_style = space
> +indent_size = 2
> +insert_final_newline = true
> +trim_trailing_whitespace = true
> +
> +[*.py]
> +charset = utf-8
> +indent_style = space
> +indent_size = 4
> +
> +[*.sh]
> +end_of_line = lf
> +
> +[.gitattributes]
> +end_of_line = lf
> +
> +[.mailmap]
> +charset = utf-8
> +
> +[Maintainers.txt]
> +charset = utf-8
> +
> +[Makefile,GNUmakefile]
> +indent_style = tab
> --
> 2.37.1 (Apple Git-137.1)
>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [edk2-devel] [PATCH v2 1/1] Add a .editorconfig file to tell editors basic formatting details
  2023-03-01 22:11 ` Ard Biesheuvel
@ 2023-09-08 15:14   ` Ard Biesheuvel
  2023-09-08 15:54     ` Michael D Kinney
  0 siblings, 1 reply; 9+ messages in thread
From: Ard Biesheuvel @ 2023-09-08 15:14 UTC (permalink / raw)
  To: Rebecca Cran; +Cc: devel, Andrew Fish, Leif Lindholm, Michael D Kinney

On Wed, 1 Mar 2023 at 23:11, Ard Biesheuvel <ardb@kernel.org> wrote:
>
> On Wed, 1 Mar 2023 at 19:19, Rebecca Cran <rebecca@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@bsdio.com>
>
> Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
>

Can we get this merged please? Thanks.


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#108449): https://edk2.groups.io/g/devel/message/108449
Mute This Topic: https://groups.io/mt/97321658/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [edk2-devel] [PATCH v2 1/1] Add a .editorconfig file to tell editors basic formatting details
  2023-09-08 15:14   ` [edk2-devel] " Ard Biesheuvel
@ 2023-09-08 15:54     ` Michael D Kinney
  2023-09-08 16:21       ` Ard Biesheuvel
  0 siblings, 1 reply; 9+ messages in thread
From: Michael D Kinney @ 2023-09-08 15:54 UTC (permalink / raw)
  To: Ard Biesheuvel, Rebecca Cran
  Cc: devel@edk2.groups.io, Andrew Fish, Leif Lindholm,
	Kinney, Michael D

Acked-by: Michael D Kinney <michael.d.kinney@intel.com>

> -----Original Message-----
> From: Ard Biesheuvel <ardb@kernel.org>
> Sent: Friday, September 8, 2023 8:14 AM
> To: Rebecca Cran <rebecca@bsdio.com>
> Cc: devel@edk2.groups.io; Andrew Fish <afish@apple.com>; Leif Lindholm
> <quic_llindhol@quicinc.com>; Kinney, Michael D
> <michael.d.kinney@intel.com>
> Subject: Re: [PATCH v2 1/1] Add a .editorconfig file to tell editors
> basic formatting details
> 
> On Wed, 1 Mar 2023 at 23:11, Ard Biesheuvel <ardb@kernel.org> wrote:
> >
> > On Wed, 1 Mar 2023 at 19:19, Rebecca Cran <rebecca@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@bsdio.com>
> >
> > Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
> >
> 
> Can we get this merged please? Thanks.


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#108451): https://edk2.groups.io/g/devel/message/108451
Mute This Topic: https://groups.io/mt/97321658/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/leave/12367111/7686176/1913456212/xyzzy [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [edk2-devel] [PATCH v2 1/1] Add a .editorconfig file to tell editors basic formatting details
  2023-09-08 15:54     ` Michael D Kinney
@ 2023-09-08 16:21       ` Ard Biesheuvel
  2023-09-08 16:31         ` Rebecca Cran
  2023-09-08 16:31         ` Michael D Kinney
  0 siblings, 2 replies; 9+ messages in thread
From: Ard Biesheuvel @ 2023-09-08 16:21 UTC (permalink / raw)
  To: devel, michael.d.kinney; +Cc: Rebecca Cran, Andrew Fish, Leif Lindholm

On Fri, 8 Sept 2023 at 17:54, Michael D Kinney
<michael.d.kinney@intel.com> wrote:
>
> Acked-by: Michael D Kinney <michael.d.kinney@intel.com>
>

Thanks

I can merge this but note that we'll need to convert it to CR-LF
first. (My VIM editor with editorconfig integration seems perfectly
happy with that)


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#108453): https://edk2.groups.io/g/devel/message/108453
Mute This Topic: https://groups.io/mt/97321658/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [edk2-devel] [PATCH v2 1/1] Add a .editorconfig file to tell editors basic formatting details
  2023-09-08 16:21       ` Ard Biesheuvel
@ 2023-09-08 16:31         ` Rebecca Cran
  2023-09-08 16:31         ` Michael D Kinney
  1 sibling, 0 replies; 9+ messages in thread
From: Rebecca Cran @ 2023-09-08 16:31 UTC (permalink / raw)
  To: Ard Biesheuvel, devel, michael.d.kinney; +Cc: Andrew Fish, Leif Lindholm

On 9/8/23 10:21, Ard Biesheuvel wrote:

> On Fri, 8 Sept 2023 at 17:54, Michael D Kinney
> <michael.d.kinney@intel.com> wrote:
>> Acked-by: Michael D Kinney <michael.d.kinney@intel.com>
>>
> Thanks
>
> I can merge this but note that we'll need to convert it to CR-LF
> first. (My VIM editor with editorconfig integration seems perfectly
> happy with that)

Good point - I'll fix the line endings and merge it.

Thinking of line endings, I was wondering if we might want to make the following additions to BaseTools/Conf/gitattributes, along with setting "core.autocrlf=false" and "core.eol=crlf"?

* text=auto
*.png -text
*.pyd -text
*.sh                                 eol=lf
.gitmodules                          eol=lf
BaseTools/BinWrappers/PosixLike/*    eol=lf
BaseTools/BinPipWrappers/PosixLike/* eol=lf
BaseTools/BuildEnv                   eol=lf
BaseTools/Conf/diff.order            eol=lf

-- 
Rebecca Cran



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#108454): https://edk2.groups.io/g/devel/message/108454
Mute This Topic: https://groups.io/mt/97321658/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [edk2-devel] [PATCH v2 1/1] Add a .editorconfig file to tell editors basic formatting details
  2023-09-08 16:21       ` Ard Biesheuvel
  2023-09-08 16:31         ` Rebecca Cran
@ 2023-09-08 16:31         ` Michael D Kinney
  2023-09-08 17:07           ` Rebecca Cran
  1 sibling, 1 reply; 9+ messages in thread
From: Michael D Kinney @ 2023-09-08 16:31 UTC (permalink / raw)
  To: Ard Biesheuvel, devel@edk2.groups.io
  Cc: Rebecca Cran, Andrew Fish, Leif Lindholm, Kinney, Michael D

I already have PR opened.  https://github.com/tianocore/edk2/pull/4811

Can you verify the line endings are correct?

Mike


> -----Original Message-----
> From: Ard Biesheuvel <ardb@kernel.org>
> Sent: Friday, September 8, 2023 9:21 AM
> To: devel@edk2.groups.io; Kinney, Michael D <michael.d.kinney@intel.com>
> Cc: Rebecca Cran <rebecca@bsdio.com>; Andrew Fish <afish@apple.com>; Leif
> Lindholm <quic_llindhol@quicinc.com>
> Subject: Re: [edk2-devel] [PATCH v2 1/1] Add a .editorconfig file to tell
> editors basic formatting details
> 
> On Fri, 8 Sept 2023 at 17:54, Michael D Kinney
> <michael.d.kinney@intel.com> wrote:
> >
> > Acked-by: Michael D Kinney <michael.d.kinney@intel.com>
> >
> 
> Thanks
> 
> I can merge this but note that we'll need to convert it to CR-LF
> first. (My VIM editor with editorconfig integration seems perfectly
> happy with that)


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#108455): https://edk2.groups.io/g/devel/message/108455
Mute This Topic: https://groups.io/mt/97321658/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/leave/12367111/7686176/1913456212/xyzzy [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [edk2-devel] [PATCH v2 1/1] Add a .editorconfig file to tell editors basic formatting details
  2023-09-08 16:31         ` Michael D Kinney
@ 2023-09-08 17:07           ` Rebecca Cran
  2023-09-08 19:19             ` Michael D Kinney
  0 siblings, 1 reply; 9+ messages in thread
From: Rebecca Cran @ 2023-09-08 17:07 UTC (permalink / raw)
  To: Kinney, Michael D, Ard Biesheuvel, devel@edk2.groups.io
  Cc: Andrew Fish, Leif Lindholm

Looks good.


$ file .editorconfig
.editorconfig: ASCII text, with CRLF line terminators


On 9/8/23 10:31, Kinney, Michael D wrote:
> I already have PR opened.  https://github.com/tianocore/edk2/pull/4811
>
> Can you verify the line endings are correct?
>
> Mike
>
>
>> -----Original Message-----
>> From: Ard Biesheuvel <ardb@kernel.org>
>> Sent: Friday, September 8, 2023 9:21 AM
>> To: devel@edk2.groups.io; Kinney, Michael D <michael.d.kinney@intel.com>
>> Cc: Rebecca Cran <rebecca@bsdio.com>; Andrew Fish <afish@apple.com>; Leif
>> Lindholm <quic_llindhol@quicinc.com>
>> Subject: Re: [edk2-devel] [PATCH v2 1/1] Add a .editorconfig file to tell
>> editors basic formatting details
>>
>> On Fri, 8 Sept 2023 at 17:54, Michael D Kinney
>> <michael.d.kinney@intel.com> wrote:
>>> Acked-by: Michael D Kinney <michael.d.kinney@intel.com>
>>>
>> Thanks
>>
>> I can merge this but note that we'll need to convert it to CR-LF
>> first. (My VIM editor with editorconfig integration seems perfectly
>> happy with that)


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#108458): https://edk2.groups.io/g/devel/message/108458
Mute This Topic: https://groups.io/mt/97321658/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [edk2-devel] [PATCH v2 1/1] Add a .editorconfig file to tell editors basic formatting details
  2023-09-08 17:07           ` Rebecca Cran
@ 2023-09-08 19:19             ` Michael D Kinney
  0 siblings, 0 replies; 9+ messages in thread
From: Michael D Kinney @ 2023-09-08 19:19 UTC (permalink / raw)
  To: Rebecca Cran, Ard Biesheuvel, devel@edk2.groups.io
  Cc: Andrew Fish, Leif Lindholm, Kinney, Michael D

Merged: https://github.com/tianocore/edk2/commit/d42ad81e2247bc6f1c30ef7be5fafc6fcfa0dfb9


> -----Original Message-----
> From: Rebecca Cran <rebecca@bsdio.com>
> Sent: Friday, September 8, 2023 10:08 AM
> To: Kinney, Michael D <michael.d.kinney@intel.com>; Ard Biesheuvel
> <ardb@kernel.org>; devel@edk2.groups.io
> Cc: Andrew Fish <afish@apple.com>; Leif Lindholm
> <quic_llindhol@quicinc.com>
> Subject: Re: [edk2-devel] [PATCH v2 1/1] Add a .editorconfig file to tell
> editors basic formatting details
> 
> Looks good.
> 
> 
> $ file .editorconfig
> .editorconfig: ASCII text, with CRLF line terminators
> 
> 
> On 9/8/23 10:31, Kinney, Michael D wrote:
> > I already have PR opened.  https://github.com/tianocore/edk2/pull/4811
> >
> > Can you verify the line endings are correct?
> >
> > Mike
> >
> >
> >> -----Original Message-----
> >> From: Ard Biesheuvel <ardb@kernel.org>
> >> Sent: Friday, September 8, 2023 9:21 AM
> >> To: devel@edk2.groups.io; Kinney, Michael D <michael.d.kinney@intel.com>
> >> Cc: Rebecca Cran <rebecca@bsdio.com>; Andrew Fish <afish@apple.com>;
> Leif
> >> Lindholm <quic_llindhol@quicinc.com>
> >> Subject: Re: [edk2-devel] [PATCH v2 1/1] Add a .editorconfig file to
> tell
> >> editors basic formatting details
> >>
> >> On Fri, 8 Sept 2023 at 17:54, Michael D Kinney
> >> <michael.d.kinney@intel.com> wrote:
> >>> Acked-by: Michael D Kinney <michael.d.kinney@intel.com>
> >>>
> >> Thanks
> >>
> >> I can merge this but note that we'll need to convert it to CR-LF
> >> first. (My VIM editor with editorconfig integration seems perfectly
> >> happy with that)


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#108460): https://edk2.groups.io/g/devel/message/108460
Mute This Topic: https://groups.io/mt/97321658/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/leave/12367111/7686176/1913456212/xyzzy [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-09-08 19:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-01 18:19 [PATCH v2 1/1] Add a .editorconfig file to tell editors basic formatting details Rebecca Cran
2023-03-01 22:11 ` Ard Biesheuvel
2023-09-08 15:14   ` [edk2-devel] " Ard Biesheuvel
2023-09-08 15:54     ` Michael D Kinney
2023-09-08 16:21       ` Ard Biesheuvel
2023-09-08 16:31         ` Rebecca Cran
2023-09-08 16:31         ` Michael D Kinney
2023-09-08 17:07           ` Rebecca Cran
2023-09-08 19:19             ` Michael D Kinney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox