Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4138929rdb; Mon, 11 Dec 2023 09:53:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IFouOGbEB2bQ2OS+rW2y02QOAvAMS3YFXhJqLDMwM+eAzruW652w7ebMBfHvFMHpqJ8smYw X-Received: by 2002:a17:90a:c908:b0:286:6cc0:caea with SMTP id v8-20020a17090ac90800b002866cc0caeamr3640386pjt.97.1702317183973; Mon, 11 Dec 2023 09:53:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702317183; cv=none; d=google.com; s=arc-20160816; b=bzyrptg1RISXvCO+viB9QAsWH6wTRU5l2GJvOybutACXCWpQh1BbprZCG3Fh1XKL9P 0fS3MZ5E49bFz/tW68sv5cXQEgfkz1QCiuZ+aKoGoeY5gFFw0LmVjgkG+Lf8QFUtW+Cx w+e14wNLcfI8RysbXsYDwepBdfb1QE9Y442pDxdR8BfajUHBMdXI5JvKADEdI3vLBJmW 86EFyBM9HcBZERz8FxIQffoqZGJfV33P0LiJNY98HIAoQf+U7anHzgb1vZ17W/JY90qA mTpRCksuajMJE44P4/TZUmRjqj5ouHNpIQaf2BtElKsGw0rtw7eH0NxLozBtOHNb1MwB x54w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=HNdUVpVhPH36KNU2qcnrNH6X8NjPUtqCR34VDWQa98A=; fh=8EX346rv5kPfwv3R5hhsaofAWKo7TltauxTavpegH+U=; b=SDCx0xQnQzqSyCQTWDqNVBPvkIL8ccbBhzL+5hSaIyIBV+2Vhx0FVu0qNxLUD2WOcg mtaPhySt4+0HlLnBr9X7Ws/oebZy2HWIQnkeJF7srVNMMLsG/R8du1qVK2i0fjfeSVCN 4leQcE+/BM/bxzFFQEDakQHdJ4H6SO5o1tyMw1ytKiL0vqqaSiW8Q1KAbcrCYaLWse6y AnximNnhHSfDfKqlMaLSfzCM8KFCpnnoxqP/ajb0RFx19WHgKa0jIzSlJfVJAl5EbNuC ax+kLTkZDn3xylDYbYLwj27mxeGVWZlfFA5SbnnlKN8POhlVXXmFY+ygLhU3KleIJjY6 1m9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="O/W1i8Kl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id fs18-20020a17090af29200b0028587c642f6si7730940pjb.154.2023.12.11.09.53.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 09:53:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="O/W1i8Kl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 466B28098FED; Mon, 11 Dec 2023 09:53:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345239AbjLKRwj (ORCPT + 99 others); Mon, 11 Dec 2023 12:52:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345238AbjLKRwK (ORCPT ); Mon, 11 Dec 2023 12:52:10 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96E2A115 for ; Mon, 11 Dec 2023 09:51:37 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20010C433CB for ; Mon, 11 Dec 2023 17:51:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702317097; bh=0ImBujzzz1HHKZSq3QS56Hx7Yt6KYZiEPa1oJkMxahY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=O/W1i8Kl6afgjlt3xX10iXjrdNkJyzsk3aIzQp5VMYulWDcVnm2+ctkpLJ7FQE9/i ijtXtzlRvbK/4ZIwDAp8JyjRJdaNjShIJ2TGVluaKjQF++LYW7EC4jNP/mpnXcbc9P Pn/ad2MBBIqmN1RSApg4Y3ovhWJ1Yt9FpqcdXO8sNH4/PCi0NmpA8kW2+zW4R3deuq 6JCX17Wcye21iFpDFdgOewktW66B/3zHSF88yKkBVTjYSFnCEHi0x8RkRHMa0v7Z4R EeimBHlCI16+WevWYPrL+a4/kki/+YFaEM/Ld4OzhVSnX4Pob4/iZl9XhIEv4ZfUK4 QUbSn8CRoS2qQ== Received: by mail-oo1-f43.google.com with SMTP id 006d021491bc7-58cf894544cso2864763eaf.3 for ; Mon, 11 Dec 2023 09:51:37 -0800 (PST) X-Gm-Message-State: AOJu0Yynh/jylFbpL7msAGx53RkzoR+8Al63BSm+WYM5BYko4kcfArd6 hw4xUbhJYIrv7HYu/EvwieglyigeKx9jd2rTJLo= X-Received: by 2002:a05:6870:d8b:b0:1e9:96c6:e04c with SMTP id mj11-20020a0568700d8b00b001e996c6e04cmr4482005oab.32.1702317096384; Mon, 11 Dec 2023 09:51:36 -0800 (PST) MIME-Version: 1.0 References: <20230601075333.14021-1-ihuguet@redhat.com> <874jiikr6e.fsf@meer.lwn.net> In-Reply-To: From: Masahiro Yamada Date: Tue, 12 Dec 2023 02:50:59 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4] Add .editorconfig file for basic formatting To: =?UTF-8?B?w43DsWlnbyBIdWd1ZXQ=?= Cc: Vincent MAILHOL , Jonathan Corbet , ojeda@kernel.org, danny@kdrag0n.dev, jgg@nvidia.com, mic@digikod.net, linux-kernel@vger.kernel.org, joe@perches.com, linux@rasmusvillemoes.dk, willy@infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 11 Dec 2023 09:53:01 -0800 (PST) On Mon, Oct 23, 2023 at 3:26=E2=80=AFPM =C3=8D=C3=B1igo Huguet wrote: > > On Mon, Oct 23, 2023 at 8:19=E2=80=AFAM Vincent MAILHOL > wrote: > > > > On Mon. 23 Oct. 2023 at 11:28, Jonathan Corbet wrote: > > > Vincent MAILHOL writes: > > > > > > > On Thu. 1 June 2023 at 16:53, =C3=8D=C3=B1igo Huguet wrote: > > > >> EditorConfig is a specification to define the most basic code form= atting > > > >> stuff, and it's supported by many editors and IDEs, either directl= y or > > > >> via plugins, including VSCode/VSCodium, Vim, emacs and more. > > > >> > > > >> It allows to define formatting style related to indentation, chars= et, > > > >> end of lines and trailing whitespaces. It also allows to apply dif= ferent > > > >> formats for different files based on wildcards, so for example it = is > > > >> possible to apply different configs to *.{c,h}, *.py and *.rs. > > > >> > > > >> In linux project, defining a .editorconfig might help to those peo= ple > > > >> that work on different projects with different indentation styles,= so > > > >> they cannot define a global style. Now they will directly see the > > > >> correct indentation on every fresh clone of the project. > > > >> > > > >> See https://editorconfig.org > > > >> > > > >> Co-developed-by: Danny Lin > > > >> Signed-off-by: Danny Lin > > > >> Signed-off-by: =C3=8D=C3=B1igo Huguet > > > >> --- > > > > > > > > Is there any news for this patch? I would really love this to becom= e mainstream. > > > > > > I have concerns about this patch that I have expressed in the past. > > > > > > I'm not going to apply it... since it's a global change that affects = all > > > kernel developers, I don't think I *should* apply it. I would recomm= end > > > sending it directly to Linus; if you can get an ack from him, I'll ap= ply > > > it then. > > > > Hi Jonathan, > > > > Thanks for the comment, message taken. > > > > Hi =C3=8D=C3=B1igo, > > > > The last version of the patch being from you, would you like to bring > > the topic to Linus yourself or shall I do it instead? > > I'm not doing kernel development lately, so please go ahead pushing > this if you want. > > Anyway, note that, as discussed in the thread, it is incorrect to say > that it will affect all kernel developers: most IDEs and editors only > have "opt-in" support for editorconfig, and the few that are not > "opt-in", are either "opt-out" or has a workaround (Kate). Applied to linux-kbuild. Thanks. We invested a significant amount of time in research and discussion, and I do not want to lose our efforts. If it turns out to be problematic, it is easy to revert it. (although I do not think so, given the wide adoption in many projects.) -- Best Regards Masahiro Yamada