* Re: [dpdk-dev] [PATCH v2] devtools: clarify that lines up to 100 characters are ok
2021-10-20 14:26 ` [dpdk-dev] [PATCH v2] devtools: clarify that lines up to 100 characters are ok Bruce Richardson
@ 2021-10-20 14:28 ` Andrew Rybchenko
2021-10-22 0:11 ` Jerin Jacob
2021-10-22 8:21 ` Xia, Chenbo
` (2 subsequent siblings)
3 siblings, 1 reply; 11+ messages in thread
From: Andrew Rybchenko @ 2021-10-20 14:28 UTC (permalink / raw)
To: Bruce Richardson, dev
On 10/20/21 5:26 PM, Bruce Richardson wrote:
> Since we allow line lengths of up to 100, and the CI checkpatches job
> only check for that amount, the rest of our tooling and docs should
> reflect this reality. Therefore we can:
>
> * adjust the editorconfig to use that value, to save editors (e.g. vim)
> from automatically wrapping lines at 80 characters when typing.
> [Since python checkers all seem to expect 79 character lines max, add
> for python only a 79-char max line length.]
>
> * change the default line length setting in checkpatches script to 100
> so as it matches CI and pre-merge checks.
>
> * update the docs to clarify that while 80 chars is recommended, up to
> 100 characters is acceptable.
>
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [dpdk-dev] [PATCH v2] devtools: clarify that lines up to 100 characters are ok
2021-10-20 14:28 ` Andrew Rybchenko
@ 2021-10-22 0:11 ` Jerin Jacob
2021-11-25 10:51 ` Thomas Monjalon
0 siblings, 1 reply; 11+ messages in thread
From: Jerin Jacob @ 2021-10-22 0:11 UTC (permalink / raw)
To: Andrew Rybchenko; +Cc: Bruce Richardson, dpdk-dev
On Wed, Oct 20, 2021 at 7:58 PM Andrew Rybchenko
<andrew.rybchenko@oktetlabs.ru> wrote:
>
> On 10/20/21 5:26 PM, Bruce Richardson wrote:
> > Since we allow line lengths of up to 100, and the CI checkpatches job
> > only check for that amount, the rest of our tooling and docs should
> > reflect this reality. Therefore we can:
> >
> > * adjust the editorconfig to use that value, to save editors (e.g. vim)
> > from automatically wrapping lines at 80 characters when typing.
> > [Since python checkers all seem to expect 79 character lines max, add
> > for python only a 79-char max line length.]
> >
> > * change the default line length setting in checkpatches script to 100
> > so as it matches CI and pre-merge checks.
> >
> > * update the docs to clarify that while 80 chars is recommended, up to
> > 100 characters is acceptable.
> >
> > Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
>
> Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Acked-by: Jerin Jacob <jerinj@marvell.com>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [dpdk-dev] [PATCH v2] devtools: clarify that lines up to 100 characters are ok
2021-10-22 0:11 ` Jerin Jacob
@ 2021-11-25 10:51 ` Thomas Monjalon
0 siblings, 0 replies; 11+ messages in thread
From: Thomas Monjalon @ 2021-11-25 10:51 UTC (permalink / raw)
To: Bruce Richardson
Cc: Andrew Rybchenko, dev, Jerin Jacob, chenbo.xia, fengchengwen,
conor.walsh, david.marchand
22/10/2021 02:11, Jerin Jacob:
> On Wed, Oct 20, 2021 at 7:58 PM Andrew Rybchenko
> <andrew.rybchenko@oktetlabs.ru> wrote:
> > On 10/20/21 5:26 PM, Bruce Richardson wrote:
> > > Since we allow line lengths of up to 100, and the CI checkpatches job
> > > only check for that amount, the rest of our tooling and docs should
> > > reflect this reality. Therefore we can:
> > >
> > > * adjust the editorconfig to use that value, to save editors (e.g. vim)
> > > from automatically wrapping lines at 80 characters when typing.
> > > [Since python checkers all seem to expect 79 character lines max, add
> > > for python only a 79-char max line length.]
> > >
> > > * change the default line length setting in checkpatches script to 100
> > > so as it matches CI and pre-merge checks.
> > >
> > > * update the docs to clarify that while 80 chars is recommended, up to
> > > 100 characters is acceptable.
> > >
> > > Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> >
> > Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
>
> Acked-by: Jerin Jacob <jerinj@marvell.com>
Acked-by: Chenbo Xia <chenbo.xia@intel.com>
Acked-by: Chengwen Feng <fengchengwen@huawei.com>
Acked-by: Conor Walsh <conor.walsh@intel.com>
As long as we keep a preference/recommandation for 80 chars, I'm fine.
In general I like short lines, but I dislike some "forced" wrapping.
So allowing for longer lines and trusting authors to do what fits best
is a good call.
Acked-by: Thomas Monjalon <thomas@monjalon.net>
Applied, thanks.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [dpdk-dev] [PATCH v2] devtools: clarify that lines up to 100 characters are ok
2021-10-20 14:26 ` [dpdk-dev] [PATCH v2] devtools: clarify that lines up to 100 characters are ok Bruce Richardson
2021-10-20 14:28 ` Andrew Rybchenko
@ 2021-10-22 8:21 ` Xia, Chenbo
2021-10-26 0:30 ` fengchengwen
2021-10-28 13:14 ` Walsh, Conor
3 siblings, 0 replies; 11+ messages in thread
From: Xia, Chenbo @ 2021-10-22 8:21 UTC (permalink / raw)
To: Richardson, Bruce, dev; +Cc: Andrew Rybchenko, Richardson, Bruce
> -----Original Message-----
> From: dev <dev-bounces@dpdk.org> On Behalf Of Bruce Richardson
> Sent: Wednesday, October 20, 2021 10:26 PM
> To: dev@dpdk.org
> Cc: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>; Richardson, Bruce
> <bruce.richardson@intel.com>
> Subject: [dpdk-dev] [PATCH v2] devtools: clarify that lines up to 100
> characters are ok
>
> Since we allow line lengths of up to 100, and the CI checkpatches job
> only check for that amount, the rest of our tooling and docs should
> reflect this reality. Therefore we can:
>
> * adjust the editorconfig to use that value, to save editors (e.g. vim)
> from automatically wrapping lines at 80 characters when typing.
> [Since python checkers all seem to expect 79 character lines max, add
> for python only a 79-char max line length.]
>
> * change the default line length setting in checkpatches script to 100
> so as it matches CI and pre-merge checks.
>
> * update the docs to clarify that while 80 chars is recommended, up to
> 100 characters is acceptable.
>
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> ---
> 2.32.0
Glad to see this :)
Acked-by: Chenbo Xia <chenbo.xia@intel.com>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [dpdk-dev] [PATCH v2] devtools: clarify that lines up to 100 characters are ok
2021-10-20 14:26 ` [dpdk-dev] [PATCH v2] devtools: clarify that lines up to 100 characters are ok Bruce Richardson
2021-10-20 14:28 ` Andrew Rybchenko
2021-10-22 8:21 ` Xia, Chenbo
@ 2021-10-26 0:30 ` fengchengwen
2021-10-28 13:14 ` Walsh, Conor
3 siblings, 0 replies; 11+ messages in thread
From: fengchengwen @ 2021-10-26 0:30 UTC (permalink / raw)
To: Bruce Richardson, dev; +Cc: Andrew Rybchenko
On 2021/10/20 22:26, Bruce Richardson wrote:
> Since we allow line lengths of up to 100, and the CI checkpatches job
> only check for that amount, the rest of our tooling and docs should
> reflect this reality. Therefore we can:
>
> * adjust the editorconfig to use that value, to save editors (e.g. vim)
> from automatically wrapping lines at 80 characters when typing.
> [Since python checkers all seem to expect 79 character lines max, add
> for python only a 79-char max line length.]
>
> * change the default line length setting in checkpatches script to 100
> so as it matches CI and pre-merge checks.
>
> * update the docs to clarify that while 80 chars is recommended, up to
> 100 characters is acceptable.
>
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Chengwen Feng <fengchengwen@huawei.com>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [dpdk-dev] [PATCH v2] devtools: clarify that lines up to 100 characters are ok
2021-10-20 14:26 ` [dpdk-dev] [PATCH v2] devtools: clarify that lines up to 100 characters are ok Bruce Richardson
` (2 preceding siblings ...)
2021-10-26 0:30 ` fengchengwen
@ 2021-10-28 13:14 ` Walsh, Conor
3 siblings, 0 replies; 11+ messages in thread
From: Walsh, Conor @ 2021-10-28 13:14 UTC (permalink / raw)
To: Richardson, Bruce, dev; +Cc: Andrew Rybchenko, Richardson, Bruce
> From: dev <dev-bounces@dpdk.org> On Behalf Of Bruce Richardson
> Sent: Wednesday 20 October 2021 15:26
> To: dev@dpdk.org
> Cc: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>; Richardson,
> Bruce <bruce.richardson@intel.com>
> Subject: [dpdk-dev] [PATCH v2] devtools: clarify that lines up to 100
> characters are ok
>
> Since we allow line lengths of up to 100, and the CI checkpatches job
> only check for that amount, the rest of our tooling and docs should
> reflect this reality. Therefore we can:
>
> * adjust the editorconfig to use that value, to save editors (e.g. vim)
> from automatically wrapping lines at 80 characters when typing.
> [Since python checkers all seem to expect 79 character lines max, add
> for python only a 79-char max line length.]
>
> * change the default line length setting in checkpatches script to 100
> so as it matches CI and pre-merge checks.
>
> * update the docs to clarify that while 80 chars is recommended, up to
> 100 characters is acceptable.
>
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> ---
I think it would be great to have clarity around this, since it seems to already be allowed.
Acked-by: Conor Walsh <conor.walsh@intel.com>
^ permalink raw reply [flat|nested] 11+ messages in thread