On Fri, Jul 3, 2020 at 4:51 PM Joe Perches <j...@perches.com> wrote: > > On Fri, 2020-07-03 at 16:08 +0800, Zong Li wrote: > > As the patch 'bdc48fa11e46 ("checkpatch/coding-style: deprecate > > 80-column warning")', increase the default limit to 100 characters, > > we also increase the maximum line length to 100 for indent script. > > I'd prefer to delete Lindent instead. > > Also any reformatting tool like this will > _always_ use up to whatever the maximum > line length is rather than use a preferred > length of 80 and and only use the allowed > maximum length of 100 when necessary for > human readability. >
Yes, as you mentioned, the reformatting tool uses up to the maximum line length, it seems to me that we don't go this patch if you plan to post the patch to delete it, otherwise, we could consider to change it to 100. > > Signed-off-by: Zong Li <zong...@sifive.com> > > --- > > scripts/Lindent | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/scripts/Lindent b/scripts/Lindent > > index 1688c44c2df6..11f14a4f2048 100755 > > --- a/scripts/Lindent > > +++ b/scripts/Lindent > > @@ -1,7 +1,7 @@ > > #!/bin/sh > > # SPDX-License-Identifier: GPL-2.0 > > > > -PARAM="-npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1" > > +PARAM="-npro -kr -i8 -ts8 -sob -l100 -ss -ncs -cp1" > > > > RES=`indent --version | cut -d' ' -f3` > > if [ "$RES" = "" ]; then >