com php-src: Update editorconfig: .editorconfig
| From: | Peter Kokot | Date: | Thu, 07 Mar 2019 00:03:56 +0000 |
| Subject: | com php-src: Update editorconfig: .editorconfig | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-105034@lists.php.net to get a copy of this message | ||
Commit: 488544b3362ede214dec32439c54aaded4bf57d7
Author: Peter Kokot <peterkokot@gmail.com> Sun, 17 Feb 2019 14:21:58 +0100
Parents: 41fb0eaa116da34fa531437d5b87ca73089e4944
Branches: PHP-7.2 PHP-7.3 PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=488544b3362ede214dec32439c54aaded4bf57d7
Log:
Update editorconfig
Changes:
- New property max_line_length
- COMMIT_EDITMSG file added when writing commit messages
- Markdown files can have trimmed trailing whitespace also to simplify
settings.
- https link used to EditorConfig page.
- Added also *.y, *.cpp, and *.inc files
- The tab_width moved to a new all files section
Changed paths:
M .editorconfig
Diff:
diff --git a/.editorconfig b/.editorconfig
index 30a6d69..ff806cb 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -1,17 +1,19 @@
-# http://editorconfig.org/
+# https://editorconfig.org/
root = true
-[*.{c,h,awk,w32,bat,mk,frag}]
+[*]
+tab_width = 4
+
+[*.{c,h,y,awk,w32,bat,mk,frag,cpp}]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = tab
-tab_width = 4
trim_trailing_whitespace = true
insert_final_newline = true
-[*.{php,phpt}]
+[*.{php,phpt,inc}]
charset = utf-8
end_of_line = lf
indent_size = 4
@@ -31,5 +33,15 @@ insert_final_newline = true
charset = utf-8
end_of_line = lf
indent_style = space
-trim_trailing_whitespace = false
+trim_trailing_whitespace = true
+insert_final_newline = true
+max_line_length = 80
+
+[COMMIT_EDITMSG]
+charset = utf-8
+end_of_line = lf
+indent_size = 4
+indent_style = space
+trim_trailing_whitespace = true
insert_final_newline = true
+max_line_length = 80