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 288ECC6FA9D for ; Wed, 1 Mar 2023 15:58:36 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 901DC85B1E; Wed, 1 Mar 2023 16:58:33 +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="NKMGMQIY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6EC8885950; Wed, 1 Mar 2023 16:58:31 +0100 (CET) Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) (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 22B4085B21 for ; Wed, 1 Mar 2023 16:58:28 +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-qt1-x82a.google.com with SMTP id c3so10457934qtc.8 for ; Wed, 01 Mar 2023 07:58:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1677686307; 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=ZtG6FdVVBRaAF6Iy0YoOuuTNTpBZ+qlOMtSHHuOVtbM=; b=NKMGMQIYkP3EVrzuyrPbTikwtnEz5XG8xOcgRKbiIdioz+SlD0JE86oV9R7rmjgTQZ Nh5GpRzPtS0YfAYh0NjANkzvqlglgxf0y21Wt9A8JoFv3in0wyhMWkAYuntVyo3ZA5X1 zbSGuWsddMARZqIDWSCz2AJut70DIS1fQVtxg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677686307; 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=ZtG6FdVVBRaAF6Iy0YoOuuTNTpBZ+qlOMtSHHuOVtbM=; b=MDKaBjQfKlGAs1aJ6stFUf+enOPO0fue1l6A+pSOCUQagqxNzcVZOrnsE75aD0jnHD Z5i4JwAKdSMhrqBtOb/TJDQw2+ALCQSB4ddcsOPGBQSCvVnDecawEpNRyyWYEHPx4tHr sTExsPAGDCwJDmwv/QFav34Vbop/ue6jgyic9m+3BFvzPJB3lObDp8mRbpoE+2JRDxoo Yv4/BlQZqAzG5REhywPUZdCtc7pPakf6kWncOxoKlpIpBfVHazifKxJl43A9BGahFsmt aw59ctctKEirviCzItfF5bYT1SQPM78hR3ieNwemEyI9w8H6ZuNcoeNfx1P37ocPBXAP epRQ== X-Gm-Message-State: AO0yUKWrVamU2dwRtVASD35/DaZkK597+QroksEe/CjJ8AftG5qE5dIz kgPJDQUVOZSVu6hGO5lepsf8wywYsfm0ZxBD9d8= X-Google-Smtp-Source: AK7set9+Tr8eLHHlRFzaOarBvQXapLJouuC6AQVvLEa8rwGGAJORAxdR/IgwLX+MV7boDcOFrqbLQw== X-Received: by 2002:a05:622a:148e:b0:3b8:3c4e:d334 with SMTP id t14-20020a05622a148e00b003b83c4ed334mr12254989qtx.50.1677686306878; Wed, 01 Mar 2023 07:58:26 -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 y141-20020a376493000000b00706c1f7a608sm9090452qkb.89.2023.03.01.07.58.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 07:58:26 -0800 (PST) Date: Wed, 1 Mar 2023 10:58:24 -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="JyQpYzSFR5qnkViO" Content-Disposition: inline In-Reply-To: <20230301104338.1744007-2-dsankouski@gmail.com> 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 --JyQpYzSFR5qnkViO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > Reviewed-by: Simon Glass > --- > Changes for v2: > - add section in coding style rst doc > - unify Kconfig with other files >=20 > .editorconfig | 15 +++++++++++++++ > .gitignore | 1 + > doc/develop/codingstyle.rst | 4 ++++ > 3 files changed, 20 insertions(+) > create mode 100644 .editorconfig >=20 > 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 and I= DEs. > +; 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". > +end_of_line =3D lf > +trim_trailing_whitespace =3D true > +insert_final_newline =3D true > diff --git a/.gitignore b/.gitignore > index 3a4d056edf..ed8ca226fe 100644 > --- a/.gitignore > +++ b/.gitignore > @@ -7,6 +7,7 @@ > # > .* > !.checkpatch.conf > +!.editorconfig > *.a > *.asn1.[ch] > *.bin > diff --git a/doc/develop/codingstyle.rst b/doc/develop/codingstyle.rst > index 1d5d0192b3..741bc58b83 100644 > --- a/doc/develop/codingstyle.rst > +++ b/doc/develop/codingstyle.rst > @@ -27,6 +27,10 @@ The following rules apply: > more information, read :doc:`checkpatch`. Note that this should be done > *before* posting on the mailing list! > =20 > +* Some code style rules may be applied automatically by your editor using "using the" > + EditorConfig tool. Feel free to setup your editor to work with u-boot's --=20 Tom --JyQpYzSFR5qnkViO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmP/dh0ACgkQFHw5/5Y0 tywGHwv6A5jgijXsgqrFYxAIaRw77BXQP/EFYwEvLBzie64SIH4IdrLXCb8dZExa pCR43TKRwU4KT1IbyC2Ua//aEl5mAswxNkPS6dnaxVspPfaXk9ADtLXP8osFzNLp CmwpM5yB2rbP+qT4osKLm0m8coNq8uH+NcdqU/xFCXL7gNHwgLKud2sH1uOjmIat WchIh4DPDTaHbxg1u5tyQMvNiq+cJ11STGoyOw4tB26NJkzVaUU6SBr4W1z3cz01 qdJtiuItGF+x1W8ur768Kjysnso1Ag+WyVPhliIwnAc4Mlp3NR90nzx6ZeliSD42 XuIeJa2vHhS3z01ZWFx4ZPuEqQoAWoKX5SQvoTVctJpGYzWM2XvfcVbooq6TUDll TuWnXzMobqWgsBgRqZsJ0dfP9vIoqMSe2gHPf1McZwen/8yzTC+HApX6lG+8vsay yovFCwgQd1QohifbflhJmWQgrNrLLXWhFWNwd0RWDXzmmDJRHekis9hyV31qCZga 5vE4x/EY =4vid -----END PGP SIGNATURE----- --JyQpYzSFR5qnkViO--