From: Bruno Thomsen <bruno.thomsen@gmail.com>
To: ptxdist@pengutronix.de
Cc: bruno.thomsen@gmail.com
Subject: [ptxdist] [PATCH v2 2/2] EditorConfig: add .editorconfig file in root
Date: Wed, 30 Jul 2025 19:46:01 +0200 [thread overview]
Message-ID: <20250730174601.19614-2-bruno.thomsen@gmail.com> (raw)
In-Reply-To: <20250730174601.19614-1-bruno.thomsen@gmail.com>
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 -it --rm --volume="$PWD:/check:z" mstruebing/editorconfig-checker
Check a subset of files on Fedora from ptxdist git root directory:
podman run -it --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 <bruno.thomsen@gmail.com>
---
v1 -> v2:
Add .editorconfig following mailing list discussion
.editorconfig | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
create mode 100644 .editorconfig
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 000000000..aa99f8b0c
--- /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
+
--
2.50.1
next prev parent reply other threads:[~2025-07-30 17:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-30 17:46 [ptxdist] [PATCH v2 1/2] templates: update vim modeline for makefile and kconfig files Bruno Thomsen
2025-07-30 17:46 ` Bruno Thomsen [this message]
2025-07-31 5:58 ` [ptxdist] [PATCH v2 2/2] EditorConfig: add .editorconfig file in root Bruno Thomsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250730174601.19614-2-bruno.thomsen@gmail.com \
--to=bruno.thomsen@gmail.com \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox