From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 05 Aug 2025 07:00:31 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uj9mo-007B56-39 for lore@lore.pengutronix.de; Tue, 05 Aug 2025 07:00:30 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1uj9mo-0000JK-Mx; Tue, 05 Aug 2025 07:00:30 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1uj9mB-00072z-M1; Tue, 05 Aug 2025 06:59:51 +0200 Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uj9mB-00Bz62-1b; Tue, 05 Aug 2025 06:59:51 +0200 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1uj9mB-00Fsiu-1R; Tue, 05 Aug 2025 06:59:51 +0200 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Tue, 5 Aug 2025 06:59:51 +0200 Message-Id: <20250805045951.3785269-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250730174601.19614-2-bruno.thomsen@gmail.com> References: <20250730174601.19614-2-bruno.thomsen@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [ptxdist] [APPLIED] EditorConfig: add .editorconfig file in root X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Bruno Thomsen Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Thanks, applied as 34fc073c955f51db7e1fb2b36b6e47b421342b8b. Michael [sent from post-receive hook] On Tue, 05 Aug 2025 06:59:51 +0200, Bruno Thomsen wrote: > Add an .editorconfig file instead of "noet ts=8 sw=8" vim modeline. > > Some code editors have builtin support and others need a plugin or > an extention. VS Code require an editorconfig extention. > > Check all files on Fedora from ptxdist git root directory: > podman run --rm --volume="$PWD:/check:z" mstruebing/editorconfig-checker > > Check a subset of files on Fedora from ptxdist git root directory: > podman run --rm --volume="$PWD:/check:z" mstruebing/editorconfig-checker ec rules/templates/*-make > > Remove :z on Debian/Ubuntu. > On older hosts it's also possible to replace podman with docker. > > Signed-off-by: Bruno Thomsen > Message-Id: <20250730174601.19614-2-bruno.thomsen@gmail.com> > Signed-off-by: Michael Olbrich > > diff --git a/.editorconfig b/.editorconfig > new file mode 100644 > index 000000000000..aa99f8b0c55f > --- /dev/null > +++ b/.editorconfig > @@ -0,0 +1,22 @@ > +root = true > + > +[*] > +indent_style = tab > +tab_width = 8 > +indent_size = 8 > +end_of_line = lf > +insert_final_newline = true > +trim_trailing_whitespace = true > + > +# kconfig uses a mix of tab and spaces in help section > +[*{.in,-in}] > +indent_style = unset > + > +[*.sh] > +indent_size = 4 > + > +[*.py] > +indent_style = space > +tab_width = 4 > +indent_size = 4 > +