Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5739351rwl; Tue, 4 Apr 2023 03:00:03 -0700 (PDT) X-Google-Smtp-Source: AKy350bnyRWzJprhHs3hfDwHnd4uRodUN0RQt/dPj9AbkpcfOsz4jNMZC/nd0RK2ztZVE4wPwsgn X-Received: by 2002:aa7:d94f:0:b0:502:5288:e37a with SMTP id l15-20020aa7d94f000000b005025288e37amr1793315eds.6.1680602403216; Tue, 04 Apr 2023 03:00:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680602403; cv=none; d=google.com; s=arc-20160816; b=PJGvXyeZWVoB5HfMt9aVqMcDNcXbJfnrdz0Ytdz1PBYjuibHvfHOCHzfM8cJtWUE2n E4fbMPH149QiDoNoD3GxlqUgC3t5n7WFH/dzYRT9c948dTlGbfpviOV0iKbAODf9wAkF 1uBuwhGbiMO3BTrRbHqdHNeQNG8ckFoI40B2U28Bx0++5jHvT6f7G9krdbaW9guG+W3V /SJCOhpQ2Ty3WWH6jHekQsrhOZjaRJ0SQgnaAvBLr3TCr6lpfDvhC/xWjmXZ5eSDMwtM WmiUD+3F5UnSN4lfailtVjn1J7SYqWrrAAdqbPXgVLAiiT9azEYSqHZFuFTR3PAKQOOp beaw== 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=TtGvheLFEQGeT+QVm8ZOPd3bzjNLsHpa4GqYKrAgw3A=; b=YvDeSFyb+lmjJkJaMho+S0RhOue4p/B4w9hiIFzApI0lxjECEA36uLQ9Fa1HRuwC0y FsSXc+YG5KDQvMZOgbF2p/ASE0Vf5sF27xY8D/vCQvjsai60yLCobMve6i3FKAI5U8hD wz89IULKpWJjUV6XgX47JPwUjKpLMmPip0ZipT32HFI8HG7utt//gImh9csOfPdbNvL1 d1mp/1TF04DOeie8gZkmuW28uiZJyb+qZunEkEWugAcMxHMMol9Q9e8FXGIAeypRkFjA coqgxwmraf2MkMRsWmKEAwiZj1zFlYa9zjkv9pJ4NVi7CE4VtLcb24rucniH+rPxKrC7 KvjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=inklxK8P; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k17-20020aa7d8d1000000b004c1a8c104d0si8831877eds.382.2023.04.04.02.59.38; Tue, 04 Apr 2023 03:00:03 -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=@gmail.com header.s=20210112 header.b=inklxK8P; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234085AbjDDJv5 (ORCPT + 99 others); Tue, 4 Apr 2023 05:51:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233828AbjDDJv4 (ORCPT ); Tue, 4 Apr 2023 05:51:56 -0400 Received: from mail-yb1-xb31.google.com (mail-yb1-xb31.google.com [IPv6:2607:f8b0:4864:20::b31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A38E11BCD for ; Tue, 4 Apr 2023 02:51:53 -0700 (PDT) Received: by mail-yb1-xb31.google.com with SMTP id n125so37903445ybg.7 for ; Tue, 04 Apr 2023 02:51:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680601913; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=TtGvheLFEQGeT+QVm8ZOPd3bzjNLsHpa4GqYKrAgw3A=; b=inklxK8PUBaed0NuvgCoTa8YYllcZofQmdvhAxfTcgTg5G+omwrj6JbnAkRr9/SDAG QLwvpBo8purtIn9w60Dqpp78FGMi/IgeFSWz0SWYd7oxazxZl7zfdok0b5nDsf0GO1kE cOh2RpT3dR39Pog6t7d1iGuxg9CHtDaPKmkipOdViB5mU4o0Jnp/5ssPOwoxY0BO6XtJ h0XPGSRCbTIDAWs3HdvFJ/kFZiC3T6BEr7uehdkZHNuN2s7fZ4UWEuUfCpd2cxpA5ZHa 3U1tYrTN1shrAwvmYwkdCFwBh/AiR1o+pv6ACleb/nXwHwCouRHb45IE9/7zFmI0jfjr EOFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680601913; 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=TtGvheLFEQGeT+QVm8ZOPd3bzjNLsHpa4GqYKrAgw3A=; b=7sL0N2X26p8b6SWnDq1dK50Ug49pdVseEMmleJw0t/0q9dOIaLGnzECvQvnGt5axYv hx1Rx+zlgf4q8xolmznJcJ47fV3ji0fCH9HP2ddPBCC16dohXyMvh3xTdp9LO7ah3Lbs y+XX/+UnNGwnwD6gm1ezA5NoQuSI8Em8ypVYlFgWVbHPVdyEdQo2XRplT0SHvARycqs8 qk7inl4LfllLvTkUxS6/GIltZ9zL34nXG19mkP0ZhIziosNz0Ei7UnJZZ1LB8v/jAXCx zJK7NujTi5t7UK9pgf4NU62rxqjb+CERm1WkL/z5XCCebsikMHfDLsOLI987S5MMnaAe QK1w== X-Gm-Message-State: AAQBX9c23R+WOyAIrmnmLkpLvKEaQxtcPO+Jt9KEDUmL+qmjmr6b/j2y w5ZN+z1bI9KIwR4abIL5y5J7rnqNqTGbyWXK3sViEt9vDZ0= X-Received: by 2002:a25:d897:0:b0:b4c:9333:293 with SMTP id p145-20020a25d897000000b00b4c93330293mr1261703ybg.11.1680601912868; Tue, 04 Apr 2023 02:51:52 -0700 (PDT) MIME-Version: 1.0 References: <20230404075540.14422-1-ihuguet@redhat.com> In-Reply-To: <20230404075540.14422-1-ihuguet@redhat.com> From: Miguel Ojeda Date: Tue, 4 Apr 2023 11:51:41 +0200 Message-ID: Subject: Re: [PATCH v2] Add .editorconfig file for basic formatting To: =?UTF-8?B?w43DsWlnbyBIdWd1ZXQ=?= , Danny Lin Cc: ojeda@kernel.org, masahiroy@kernel.org, jgg@nvidia.com, mic@digikod.net, linux-kernel@vger.kernel.org, Jonathan Corbet , Joe Perches , Rasmus Villemoes , Matthew Wilcox Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Hi =C3=8D=C3=B1igo, On Tue, Apr 4, 2023 at 9:55=E2=80=AFAM =C3=8D=C3=B1igo Huguet wrote: > > EditorConfig is a specification to define the most basic code formatting > stuff, and it's supported by many editors and IDEs, either directly or > via plugins, including VSCode/VSCodium, Vim, emacs and more. Please see https://lore.kernel.org/lkml/20200703073143.423557-1-danny@kdrag= 0n.dev/ for a previous patch & discussion, as well as commit fa60ce2cb450 ("treewide: remove editor modelines and cruft") for a related cleanup. Cc'ing those that gave some feedback back then. Danny's v2 patch has some extra extensions/languages it manages as well as some docs, and yours handles things that one doesn't, like the Rust files and `Makefile.*` cases. So it would be nice to get a version that merges everything from both of you, likely as co-developers. It still remains important to see if somebody's workflow could break due to this, especially for the catch-all section `[*]` and for options like `trim_trailing_whitespace` which can actually break things like patch files as you note in the changelog. Perhaps landing it in linux-next for an extended period of time (e.g. a few kernel cycles) is one way to find out, or we could start without the "dangerous" options. What do others think? By the way, for the next/merged version, in your side please keep `!.editorconfig` sorted and in the other side please avoid the duplicated `.tc` case (which I just noticed). Cheers, Miguel