Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp719789rdb; Tue, 23 Jan 2024 12:43:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IHbyNM7iUtwnoPkOapqljwFr5hut+3J0fIcQXzmA0A3OPS9BEVJ6pkwh7ZxxFcQPKna2T34 X-Received: by 2002:a17:902:7d82:b0:1d7:3adf:350e with SMTP id a2-20020a1709027d8200b001d73adf350emr183341plm.34.1706042618572; Tue, 23 Jan 2024 12:43:38 -0800 (PST) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d18-20020a170902b71200b001d7313028e5si6148011pls.430.2024.01.23.12.43.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 12:43:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36002-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-36002-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36002-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id ABB62B22FD9 for ; Tue, 23 Jan 2024 20:03:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7FD2682D8D; Tue, 23 Jan 2024 20:03:48 +0000 (UTC) Received: from fgw21-7.mail.saunalahti.fi (fgw21-7.mail.saunalahti.fi [62.142.5.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 90A6D82D6E for ; Tue, 23 Jan 2024 20:03:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.142.5.82 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706040228; cv=none; b=ZCXrIShrtj7Rwttg32kBqFkItKGx0Dhzsbvx60RxI+GP8QQg6FnooXyLhUOiDgmk7tipm8z7Or5wV5kqXPWvIDe7LTjPaPsxn4PRO+GyxV1B4UV04Kbo+Rn8ihZJuCso8rn8ZAxR5KC3+rKmmE6iX0k7pDhSj39MLE3cmTiJCT4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706040228; c=relaxed/simple; bh=dyQW3NaeVkojEhzJb3PKNuLH5mqxW5v94UTZFeODr5k=; h=From:Date:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=k1IO4h9Fi61FpPphN6ZFS0NGkFKc4PNyqIHAnfvmrqSETXEEU0k4BdaiIHzPuyj6x2LdFZR5NEebbEZJD6PPJmM7T7pCxp4+MzDPxZvlYLYBaky0mivelUCLNDL6hyXEZKe3bjFunXi/Sk0hI4Qzl3Ryexy+3OFiYRGmkmpcXo8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com; spf=fail smtp.mailfrom=gmail.com; arc=none smtp.client-ip=62.142.5.82 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=gmail.com Received: from localhost (88-113-24-108.elisa-laajakaista.fi [88.113.24.108]) by fgw21.mail.saunalahti.fi (Halon) with ESMTP id 7ea79e9f-ba2a-11ee-abf4-005056bdd08f; Tue, 23 Jan 2024 22:03:38 +0200 (EET) From: andy.shevchenko@gmail.com Date: Tue, 23 Jan 2024 22:03:37 +0200 To: =?iso-8859-1?B?zfFpZ28=?= Huguet Cc: ojeda@kernel.org, danny@kdrag0n.dev, masahiroy@kernel.org, jgg@nvidia.com, mic@digikod.net, linux-kernel@vger.kernel.org, corbet@lwn.net, joe@perches.com, linux@rasmusvillemoes.dk, willy@infradead.org, mailhol.vincent@wanadoo.fr Subject: Re: [PATCH v4] Add .editorconfig file for basic formatting Message-ID: References: <20230601075333.14021-1-ihuguet@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230601075333.14021-1-ihuguet@redhat.com> Thu, Jun 01, 2023 at 09:53:33AM +0200, ??igo Huguet kirjoitti: > 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. > > It allows to define formatting style related to indentation, charset, > end of lines and trailing whitespaces. It also allows to apply different > 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 people > 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 .. > +[{*.{awk,c,dts,dtsi,dtso,h,mk,s,S},Kconfig,Makefile,Makefile.*}] Missing Kconfig.* ? -- With Best Regards, Andy Shevchenko