mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Bruno Thomsen <bruno.thomsen@gmail.com>
Subject: Re: [ptxdist] [APPLIED] EditorConfig: add .editorconfig file in root
Date: Tue,  5 Aug 2025 06:59:51 +0200	[thread overview]
Message-ID: <20250805045951.3785269-1-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20250730174601.19614-2-bruno.thomsen@gmail.com>

Thanks, applied as 34fc073c955f51db7e1fb2b36b6e47b421342b8b.

Michael

[sent from post-receive hook]

On Tue, 05 Aug 2025 06:59:51 +0200, Bruno Thomsen <bruno.thomsen@gmail.com> 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 <bruno.thomsen@gmail.com>
> Message-Id: <20250730174601.19614-2-bruno.thomsen@gmail.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> 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
> +



  parent reply	other threads:[~2025-08-05  5:00 UTC|newest]

Thread overview: 5+ 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 ` [ptxdist] [PATCH v2 2/2] EditorConfig: add .editorconfig file in root Bruno Thomsen
2025-07-31  5:58   ` Bruno Thomsen
2025-08-05  4:59   ` Michael Olbrich [this message]
2025-08-05  4:59 ` [ptxdist] [APPLIED] templates: update vim modeline for makefile and kconfig files Michael Olbrich

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=20250805045951.3785269-1-m.olbrich@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=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