Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1035524rda; Sun, 22 Oct 2023 23:27:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH2GGXoZ7UKh0DqcMiKtslOuhMJOAqqd5Sy8ixZIUIzzSNSO1W4aoGs5lAjwxnZflLxBBVN X-Received: by 2002:a05:6a21:3291:b0:161:b5f9:e78d with SMTP id yt17-20020a056a21329100b00161b5f9e78dmr14487915pzb.23.1698042455356; Sun, 22 Oct 2023 23:27:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698042455; cv=none; d=google.com; s=arc-20160816; b=paTz45jeYfS29a8Sv8kORPxDkjJhziOCvBymqc/Q9KQJbjxrMQPYLTYLQILli9Y2U7 +/SIpuOPTRVVFyWWNamkVhvHY6/Kz88DeJXFBOckAWKCPvyfnAKRz2jE5iBV+dLurx1t 7UYJ4lZX5FXlZHBCorN57/KC2qmyn5x19QvShYs5jqiiQlK7VV4L8RCwH6UG6ENdavzB MXBLi2NhCnyzJ9yOJhmv6lVErS09KhOH7EtgmxpBMg/HQqWFAsQPrRx15vcrTAP0Ylt3 U1X+tEY8nNdTDv6VbS/AtrSy4qg929y6gOrKdhymI6LVYnDc2ya6hs7ia+Zlh+HWCKWG QCTA== 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=irL60YmVQm+inM4bOCBZqZ+DOm0v1MUiGeZOzWuHLf8=; fh=5lpZnrdZ7lhzpnQlnQyQigwMmM0Qq+W4fwmnHRCH+qw=; b=mCShYUYL5r1BuNsdyT4TnxZGq0FJk4N014s+qpq5soo/jrSrLtpbpCZe4SuWhCphHk POv9u/TB8+RMsOSsWWnq+XMqkqoaW63VDRECI7IcU0o97lCjQH2FP3IhHq22MOyBi6mR FsYC1vKxHO9XDe8eTKT8dR2cDM5ZTeDeyv0zxVPhlnR4AqRTo1cq92DZXYp5+vTnAKFk CIOrk1DTpVn8Lf0OOs/SgJJo8YBa0PIrZRNJTduXoTP6/UyJNPlucg0w0aGp5HAmQKNq fDctYJDXJEB47hphnpmuMjTRox8p5DQvuKtlZkf7+9c+lIEZmAhdTAWmAyDLxaAqLa24 xfYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KUszNFd6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id i135-20020a636d8d000000b0057759a5b7c6si6077702pgc.62.2023.10.22.23.27.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 23:27:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KUszNFd6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 5D7D880A2663; Sun, 22 Oct 2023 23:27:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233360AbjJWG1c (ORCPT + 99 others); Mon, 23 Oct 2023 02:27:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbjJWG1b (ORCPT ); Mon, 23 Oct 2023 02:27:31 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECF97DB for ; Sun, 22 Oct 2023 23:26:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698042406; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=irL60YmVQm+inM4bOCBZqZ+DOm0v1MUiGeZOzWuHLf8=; b=KUszNFd6l0sY2zkQ1JQSY3vkaTHaDEUkhYkGkGRewW/gpqnu21x+Kg4Ru6vymn2o6NRY3W N8kYJujvXS8fT3YoFEhB4OJnEn3gUibTfCsGWH8soV9cLWlQR05BcL2yobadH5d6QWKe89 AiOCQuCPXIvlx/ZSF4HsHykeNxeJ9S4= Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-589-6ew-CY9gMSS8Ce683leUXg-1; Mon, 23 Oct 2023 02:26:44 -0400 X-MC-Unique: 6ew-CY9gMSS8Ce683leUXg-1 Received: by mail-lj1-f200.google.com with SMTP id 38308e7fff4ca-2c503804667so23853501fa.0 for ; Sun, 22 Oct 2023 23:26:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698042402; x=1698647202; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=irL60YmVQm+inM4bOCBZqZ+DOm0v1MUiGeZOzWuHLf8=; b=T2g/NN90k2hPcIE8vVRYRAlohKk4p2J3ucegofKwv3V60u5KdpT82/w25b/P8l93oj c1HTCloazIsjHo0RKa2lYZB0gEc0GbLOLW/1049uJ6y064hVjHep9B4+cIDAu8T0DEwL ++/v8Yj4gREkYIUhDkKnK0pNwPI9HuU4s3knH8+syWHCCKfPBkw+aKJJ6LtVorRQ/ToF sQX2JysOWxB5MTKk7cyOsOdLyshVRQKW9POp6IvEdWR29HqKm94SBMziQ6AubYi1gljC sRmdMqJVYVWWgNfyf9hzokq+YDtcutCKAEWC4xZBd8Pwjuvl5pEXEX56LeZmG6ykQIRY QDCg== X-Gm-Message-State: AOJu0Yz3Wnz+mwPda7myr8qWpBkSonlrMhZKgWDlhTlWw7I/0gbk76ud p7i75DAR4n4IOAFaX7Ra4MXMApWhTEllBpbtJiHFFK/OABIIWpZfMndNkJMJJbRcAu/WU9h9Mf2 qhVAzWz9QzTQKl1klPdmeTSoZ7DBOpWtxgrDBSTbKmYnbgSV/ X-Received: by 2002:a2e:bb12:0:b0:2bf:6852:9339 with SMTP id v18-20020a2ebb12000000b002bf68529339mr5145604lje.3.1698042402386; Sun, 22 Oct 2023 23:26:42 -0700 (PDT) X-Received: by 2002:a2e:bb12:0:b0:2bf:6852:9339 with SMTP id v18-20020a2ebb12000000b002bf68529339mr5145587lje.3.1698042402067; Sun, 22 Oct 2023 23:26:42 -0700 (PDT) MIME-Version: 1.0 References: <20230601075333.14021-1-ihuguet@redhat.com> <874jiikr6e.fsf@meer.lwn.net> In-Reply-To: From: =?UTF-8?B?w43DsWlnbyBIdWd1ZXQ=?= Date: Mon, 23 Oct 2023 08:26:30 +0200 Message-ID: Subject: Re: [PATCH v4] Add .editorconfig file for basic formatting To: Vincent MAILHOL Cc: Jonathan Corbet , ojeda@kernel.org, danny@kdrag0n.dev, masahiroy@kernel.org, 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=-0.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE,URIBL_BLACK autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Sun, 22 Oct 2023 23:27:34 -0700 (PDT) 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 format= ting > > >> stuff, and it's supported by many editors and IDEs, either directly = or > > >> via plugins, including VSCode/VSCodium, Vim, emacs and more. > > >> > > >> It allows to define formatting style related to indentation, charset= , > > >> end of lines and trailing whitespaces. It also allows to apply diffe= rent > > >> 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 peopl= e > > >> that work on different projects with different indentation styles, s= o > > >> 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 become = 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 al= l > > kernel developers, I don't think I *should* apply it. I would recommen= d > > sending it directly to Linus; if you can get an ack from him, I'll appl= y > > 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). > > > Yours sincerely, > Vincent Mailhol > --=20 =C3=8D=C3=B1igo Huguet