* [PATCH 0/1] introduce .editorconfig
@ 2023-02-28 8:45 Dzmitry Sankouski
2023-02-28 8:45 ` [PATCH 1/1] editorconfig: " Dzmitry Sankouski
0 siblings, 1 reply; 3+ messages in thread
From: Dzmitry Sankouski @ 2023-02-28 8:45 UTC (permalink / raw)
To: u-boot; +Cc: Dzmitry Sankouski
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.
Dzmitry Sankouski (1):
editorconfig: introduce .editorconfig
.editorconfig | 19 +++++++++++++++++++
.gitignore | 1 +
2 files changed, 20 insertions(+)
create mode 100644 .editorconfig
--
2.30.2
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] editorconfig: introduce .editorconfig
2023-02-28 8:45 [PATCH 0/1] introduce .editorconfig Dzmitry Sankouski
@ 2023-02-28 8:45 ` Dzmitry Sankouski
2023-02-28 15:10 ` Simon Glass
0 siblings, 1 reply; 3+ messages in thread
From: Dzmitry Sankouski @ 2023-02-28 8:45 UTC (permalink / raw)
To: u-boot; +Cc: Dzmitry Sankouski
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.
---
.editorconfig | 19 +++++++++++++++++++
.gitignore | 1 +
2 files changed, 20 insertions(+)
create mode 100644 .editorconfig
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000000..b8a413fda1
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,19 @@
+; This file is for unifying the coding style for different editors and 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 = true
+
+[{**.c, **.h}]
+indent_style = tab
+indent_size=8
+end_of_line = lf
+trim_trailing_whitespace = true
+insert_final_newline = true
+
+[**Kconfig]
+indent_size=4
+
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
--
2.30.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] editorconfig: introduce .editorconfig
2023-02-28 8:45 ` [PATCH 1/1] editorconfig: " Dzmitry Sankouski
@ 2023-02-28 15:10 ` Simon Glass
0 siblings, 0 replies; 3+ messages in thread
From: Simon Glass @ 2023-02-28 15:10 UTC (permalink / raw)
To: Dzmitry Sankouski; +Cc: u-boot
Hi Dzmitry,
On Tue, 28 Feb 2023 at 01:46, Dzmitry Sankouski <dsankouski@gmail.com> 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.
> ---
> .editorconfig | 19 +++++++++++++++++++
> .gitignore | 1 +
> 2 files changed, 20 insertions(+)
> create mode 100644 .editorconfig
Reviewed-by: Simon Glass <sjg@chromium.org>
You could add .rst files as well.
>
> diff --git a/.editorconfig b/.editorconfig
> new file mode 100644
> index 0000000000..b8a413fda1
> --- /dev/null
> +++ b/.editorconfig
> @@ -0,0 +1,19 @@
> +; This file is for unifying the coding style for different editors and 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 = true
> +
> +[{**.c, **.h}]
> +indent_style = tab
> +indent_size=8
consistent spacing?
> +end_of_line = lf
> +trim_trailing_whitespace = true
> +insert_final_newline = true
> +
> +[**Kconfig]
> +indent_size=4
consistent spacing?
> +
> 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
> --
> 2.30.2
>
Regards,
Simon
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-02-28 15:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-28 8:45 [PATCH 0/1] introduce .editorconfig Dzmitry Sankouski
2023-02-28 8:45 ` [PATCH 1/1] editorconfig: " Dzmitry Sankouski
2023-02-28 15:10 ` Simon Glass
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox