Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 64F54C7EE2F for ; Thu, 2 Mar 2023 15:02:18 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3CE1085C73; Thu, 2 Mar 2023 16:02:16 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="MXCVCxKQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6188685C73; Thu, 2 Mar 2023 16:02:14 +0100 (CET) Received: from mail-oa1-x2f.google.com (mail-oa1-x2f.google.com [IPv6:2001:4860:4864:20::2f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 70DBE85C3E for ; Thu, 2 Mar 2023 16:02:11 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-oa1-x2f.google.com with SMTP id 586e51a60fabf-1755e639b65so6875800fac.3 for ; Thu, 02 Mar 2023 07:02:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1677769330; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=G+ru4lZUJSpwcPy82uZIJqxMSASg1iNQvxxoXdJshMI=; b=MXCVCxKQIqlz5hAEHzzJHOO7L86vyxTk3457VmFFN8sm+A5vssHKDyhg04X7NpqD4Z Ly1g9aAHlCGTuIV5CfU1L75cmRoleRtvSN1AJjlfZoBqpzcnZqN4z8UqZdbf6Jv0qEiK e1wheWO5KVRJ7umtvDYmNUrCN5Gw6yVNVDlYg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677769330; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=G+ru4lZUJSpwcPy82uZIJqxMSASg1iNQvxxoXdJshMI=; b=WkVnBh+rhjnjs5lG/8DTUOB8XyII53sHfFgkoHNAnUF3PqLIDmGuexZ3m4ly5Oc0se uiJSSqLKcf51HiCKyJmLxQJp7X7RnHC6DTyWtuS60SpngZMEsJaEqttfmpc4ZTp1NOtH 5XyrtC1JLrIhe4uWfG1RDqPQmPMEIextSOuwE/fjurn9xCEQWiCPsKZKPtT+36WKrND5 I2oFs8xjMUuq3oBdrgO92LPlqSXauzo99ycwNqj47MnJkCOE7l/4RmDKk1FLQFehIast 1lDaO01HUU9uyhnBo8lWDwCDu9BeRNU7LpCZtyITFzdfR6Accn8OdGeBu/GF47plwVLE l13A== X-Gm-Message-State: AO0yUKUAmfnowH7HkG4Zo82SD/FD2p4ZfJIG5o4j+eAmdqGmCl90VwEU SGqk6H47ud3jJ7mfRlEizU6CKg== X-Google-Smtp-Source: AK7set+z1TugjTy5qUWKIZTDMjYceQKZAAYkELId//TjNVIxD7AOKjhe+S0VyIPVynJL1sIo6LkaaQ== X-Received: by 2002:a05:6870:a784:b0:172:3d66:6868 with SMTP id x4-20020a056870a78400b001723d666868mr5883814oao.15.1677769328619; Thu, 02 Mar 2023 07:02:08 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-0000-0000-0000-036b.res6.spectrum.com. [2603:6081:7b00:6400::36b]) by smtp.gmail.com with ESMTPSA id r196-20020a3744cd000000b0071a02d712b0sm11408594qka.99.2023.03.02.07.02.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Mar 2023 07:02:08 -0800 (PST) Date: Thu, 2 Mar 2023 10:02:06 -0500 From: Tom Rini To: Dzmitry Sankouski Cc: u-boot@lists.denx.de, Simon Glass Subject: Re: [PATCH v2 1/1] editorconfig: introduce .editorconfig Message-ID: References: <20230301104338.1744007-1-dsankouski@gmail.com> <20230301104338.1744007-2-dsankouski@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="9FTSh7oHaX9Q8sOL" Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean --9FTSh7oHaX9Q8sOL Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 02, 2023 at 06:00:43PM +0300, Dzmitry Sankouski wrote: > =D1=81=D1=80, 1 =D0=BC=D0=B0=D1=80. 2023=E2=80=AF=D0=B3. =D0=B2 18:58, To= m Rini : > > > > On Wed, Mar 01, 2023 at 01:43:38PM +0300, Dzmitry Sankouski wrote: > > > Current process of sending patches includes running checkpatch.pl > > > script for each patch, and fixing found style problems. > > > EditorConfig may help to prevent some style related problems > > > (like spaces vs tab indentation) on the fly. > > > > > > Reviewed-by: Simon Glass > > > --- > > > Changes for v2: > > > - add section in coding style rst doc > > > - unify Kconfig with other files > > > > > > .editorconfig | 15 +++++++++++++++ > > > .gitignore | 1 + > > > doc/develop/codingstyle.rst | 4 ++++ > > > 3 files changed, 20 insertions(+) > > > create mode 100644 .editorconfig > > > > > > diff --git a/.editorconfig b/.editorconfig > > > new file mode 100644 > > > index 0000000000..10fe165f09 > > > --- /dev/null > > > +++ b/.editorconfig > > > @@ -0,0 +1,15 @@ > > > +; This file is for unifying the coding style for different editors a= nd IDEs. > > > +; Plugins are available for notepad++, emacs, vim, gedit, > > > +; textmate, visual studio, and more. > > > +; > > > +; See http://editorconfig.org for details. > > > + > > > +# Top-most EditorConfig file. > > > +root =3D true > > > + > > > +[{**.c, **.h, **Kconfig}] > > > +indent_style =3D tab > > > +indent_size=3D8 > > > > As Simon noted before, this should be " =3D 8". > > > oops, I thought he meant consistent spacing in a sense of 8 spaces. > I personally like Kconfigs with 4 indent more. Ah. But, in both cases it should be 8, as well. --=20 Tom --9FTSh7oHaX9Q8sOL Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmQAumcACgkQFHw5/5Y0 tyxv+Av+KCm8kCockaSZZbIJmTNwk8oFJOdzoFVX5hHwWvIWiD3zf02okDrvQJ04 6TIoNE7Nynk2sKS1fk1saw5D1bWfQYkWrIwbwkY9KmsIHrzd4/2xrdZt53BVjbnl EBcCbolast4ros8a55vemu8d7Y7lAvtDEjqBUtDctR5ohjRr6xLOUxjJNJnXbADs 5KOsg1PD6ZXVFvaL6lmbnR0dG2KtPZQBhEqIENoFvcMg//ghskWPp1FI1TNrAXhz Rx8jaro+GYfEn1d+HBDLCnM8e58zs60mHcEuzqjYSuCl2SkMUk87B4NDFOb8CVuR 4U8YXNUytp3A1/CnUndAKwmTaHYZ37vZ2am4tJn/I9DZ5OdU1B+A+JV/2v7RayqM /MzFWTPsK4CDA8OiSAmDx06psU+i4O0iAjPKe6VdfUKt7iML3v2iABDGepKZzqeb tNYpmK65fxutqcE2nRQsAUZf/EFeiX3ViPErWmy9Ej0N9WI2fHl3Z/obZaixs7qM wgG41wdS =2Nqb -----END PGP SIGNATURE----- --9FTSh7oHaX9Q8sOL--