Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2615486rwd; Wed, 14 Jun 2023 05:26:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ76SpXXwEZLZgWTUDRvW9HRDBX1AdlsXB6MFlFKVCUsYXCh38AM9vGjRVdqvgq8+RC/jMnK X-Received: by 2002:a17:90a:8a11:b0:25b:f9ce:d8df with SMTP id w17-20020a17090a8a1100b0025bf9ced8dfmr1117627pjn.8.1686745594544; Wed, 14 Jun 2023 05:26:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686745594; cv=none; d=google.com; s=arc-20160816; b=RcJLevLGWw34s9oJ0iyG4NOYzxOR+Q1hmC9UstsjXQg81e9w86WL0VIWiMVq9sreaJ ZWDHzuEH9ByJPPXf6k2NxBq42pp4MXzR2ArVHuxCkhqW6nQmqSksV0LsxwFS1sIrTtYU QGvd23iiybojVIxFc7fs33F/NPljaVt1kJ197q9H2fffgQsd++YIpsGb/utKc5euruCe eajXAUYFQkhWqJB/UUte9wJYU9BPDIpkMD3MrfW/hT57vNM8j1nXpbHiP8WYUuS6wjI1 A5WwMgmRYhYVNq6+3/0ODOQe41lllO9n7W60tgDgDJ1Q0wI/Z47mBIZlUCE38zXg7vMR VX2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=yJuVpE4jMb4TfTBLTiIyFyMVUfAwRk7NmxAOLH+UOaM=; b=LYHTo7Pn3WdPcSyZEslYIvqbxDhU+ztcWKPD+DApuk1OH3QIzYAUoA8z9SB0XUH+X/ 7zl3w/YzT5CPftli3ey5AzRzQ7HJcm7mpD5JSh41Ld+Nn63JgaAs2X9O7ZZ2oQNpMiI5 VDlevD8a3HfR3EbFjpKXpOVthffIpVWmaceHQ5LTi2m44ntvbbOHEc9g9bosqa6xcieE 8HIl8CHQaiIp4qbkzFnOiCdFzeK0XMICH4kmQuCTG6MAnL73s19wF5qw+nimxhZl3HHK /gjVh/8oEs7O7s1Zkp7JpGr68Ly09B2A5PWEqSGQZNRgvAYDTYtsDAzD013AKnQXjRzq mwcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=aMCuv7D0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bv132-20020a632e8a000000b0054f96f7bcf3si4859387pgb.105.2023.06.14.05.26.22; Wed, 14 Jun 2023 05:26:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=aMCuv7D0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244235AbjFNMJG (ORCPT + 99 others); Wed, 14 Jun 2023 08:09:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244141AbjFNMJC (ORCPT ); Wed, 14 Jun 2023 08:09:02 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 549201FD2 for ; Wed, 14 Jun 2023 05:08:58 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-4f649db9b25so8347580e87.0 for ; Wed, 14 Jun 2023 05:08:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; t=1686744536; x=1689336536; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=yJuVpE4jMb4TfTBLTiIyFyMVUfAwRk7NmxAOLH+UOaM=; b=aMCuv7D0SqlRUFsiNpgsgtg9e/NC6E10dFIoU2gUjluO7MwjZpGOkRVWXq5p10vuEZ qEnpKehcMsgZerqYFPnltqCe28WfNP2sBXh0CrVpSETYif9oyBfRneYczBgkq4ceQfJB uOSfO4l6TjelazoAJoqjjiFfzDN4Kdk3f3qhQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686744536; x=1689336536; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yJuVpE4jMb4TfTBLTiIyFyMVUfAwRk7NmxAOLH+UOaM=; b=VagzzQeUbXKKYfEq4gUBxGNsGhcXZ3lZp6niTQUATVF1agG/jYPd8aI0p8FlBwAQME r8Gz66Tw8DpcqHjJ8OeM+atKtpw9WcrIuwhz3cGgM2vctjT0O3u+XbtQoWtgQbu6wLR3 00m+Uohuon0jcqpr1hZRmd2Iex/irqDKs9MsHEaKKKs1jU0mSprn2x+7/9bFnDrJXi2e IkS4At/tPUFwPDs6S+LaKvdG89qmjCM1NCqR7xCIvesjP2EK0LAxqWv73MJmPf9fZzxi JKBX8wsbSR2U5tdZltpL4Yq2rGT2HYdNYb4RPEZXhwwbRv2eTyKoxNuzsloNCzlRltXp 1+Zg== X-Gm-Message-State: AC+VfDxDoaAu9MFyGagT9QCcPmSLikZO8HEbYbWWr4llfyYbnGX32dhh yeeD9kIMkBcQg+c/l1ACCGBKbw== X-Received: by 2002:a19:3848:0:b0:4f6:2722:9a5a with SMTP id d8-20020a193848000000b004f627229a5amr8109230lfj.57.1686744536506; Wed, 14 Jun 2023 05:08:56 -0700 (PDT) Received: from [172.16.11.116] ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id a2-20020ac25202000000b004f60d782681sm2099015lfl.221.2023.06.14.05.08.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Jun 2023 05:08:56 -0700 (PDT) Message-ID: Date: Wed, 14 Jun 2023 14:08:54 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v4] Add .editorconfig file for basic formatting Content-Language: en-US, da To: =?UTF-8?B?w43DsWlnbyBIdWd1ZXQ=?= , =?UTF-8?Q?Micka=c3=abl_Sala=c3=bcn?= Cc: Jonathan Corbet , ojeda@kernel.org, danny@kdrag0n.dev, masahiroy@kernel.org, jgg@nvidia.com, linux-kernel@vger.kernel.org, joe@perches.com, willy@infradead.org, mailhol.vincent@wanadoo.fr References: <20230601075333.14021-1-ihuguet@redhat.com> <87sfb1oz13.fsf@meer.lwn.net> <8f27ad5f-9a9c-3db0-a934-88e1810974f3@digikod.net> From: Rasmus Villemoes In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 On 14/06/2023 13.40, Íñigo Huguet wrote: > I neither think it is good to enable it for some folders and not for > others: developers will be surprised of having assistance in some > files and not in others, I would be bothered with such inconsistency. > > Right now I see 2 possibilities: > - Provide an .editorconfig.default so those that want to use it, can > do it. But I wouldn't mess with cherry-picking directories that > already complies and those that don't, just the developer chooses to > use it or not, and that's all. > - Provide an .editorconfig directly, and those that don't want to use > it, either disable it in their editors or manually delete the file. > > Please tell me what approach you prefer. So opting out by deleting the file would leave the developer's work-tree permanently dirty I think. So if there are editors where one cannot actually disable the editorconfig plug-in, and we worry/care about those, the second option seems to be a no-go. The first option works better; we can add an ".editorconfig" entry to .gitignore, and then have people who want to opt-in make .editorconfig a symlink to .editorconfig.default. I definitely agree that we shouldn't try to do anything per directory. Rasmus