This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 92661d9e03 .editorconfig: add .editorconfig file to help maintain 
coding style
92661d9e03 is described below

commit 92661d9e031dc55a91ea45a838a36732231d1197
Author: Michal Lenc <michall...@seznam.cz>
AuthorDate: Thu Aug 28 08:49:02 2025 +0200

    .editorconfig: add .editorconfig file to help maintain coding style
    
    Adds .editorconfig file to help maintain basic coding style
    such as indent style and brackets across various IDEs. Editor
    scans for this file and adheres to these rules.
    
    Signed-off-by: Michal Lenc <michall...@seznam.cz>
---
 .editorconfig | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000000..833ed63d82
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,26 @@
+# EditorConfig: https://EditorConfig.org
+root = true
+
+[*]
+encoding = utf-8
+end_of_line = lf
+insert_final_newline = true
+trim_trailing_whitespace = true
+
+[*.{c,h}]
+indent_style = space
+indent_size = 2
+max_line_length = 78
+curly_bracket_next_line = true
+indent_brace_style = GNU
+
+[Makefile]
+indent_style = tab
+[Make.defs]
+indent_style = tab
+[Kconfig]
+indent_style = tab
+
+[*.sh]
+indent_style = tab
+max_line_length = 80

Reply via email to