From 188d0e150ddbcac366a662e274997c77a50af66d Mon Sep 17 00:00:00 2001 From: horst Date: Sun, 23 Apr 2017 11:51:08 +0200 Subject: [PATCH 1/3] correct syntax highlighting of *.module files on github. see: https://processwire.com/talk/topic/16124-github-now-support-custom-highlight-config/ --- .gitattributes | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..ef533c2e --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +$ cat .gitattributes +*.module linguist-language=PHP From 3337aff4d53be5f4e755df206a05fa9ac8d861ea Mon Sep 17 00:00:00 2001 From: horst Date: Sun, 23 Apr 2017 12:00:33 +0200 Subject: [PATCH 2/3] create .editorconfig in wire directory This is very helpful for contributors who uses different editor settings, for example indentation with spaces, not tabs. Most of all common editor programms or IDEs nowadays support to preserve the defined coding style rules automatically. Read more here: http://editorconfig.org --- wire/.editorconfig | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 wire/.editorconfig diff --git a/wire/.editorconfig b/wire/.editorconfig new file mode 100644 index 00000000..ed802d68 --- /dev/null +++ b/wire/.editorconfig @@ -0,0 +1,31 @@ +; This file is for unifying the coding style for different editors and IDEs. +; More information at http://editorconfig.org + + +root = true + + +[*] +charset = utf-8 +end_of_line = lf + + +[*.{php,inc,module}] +tab_width = 4 +indent_style = tab +trim_trailing_whitespace = false +insert_final_newline = true + + +[*.js] +tab_width = 4 +indent_style = tab +trim_trailing_whitespace = true +insert_final_newline = true + + +[*.{css,less,scss}] +tab_width = 2 +indent_style = tab +trim_trailing_whitespace = true +insert_final_newline = true From 64e9ca214d405578f1dbd19ba3cb99cc46972356 Mon Sep 17 00:00:00 2001 From: horst Date: Mon, 24 Apr 2017 10:35:20 +0200 Subject: [PATCH 3/3] stripped out tab_width --- wire/.editorconfig | 3 --- 1 file changed, 3 deletions(-) diff --git a/wire/.editorconfig b/wire/.editorconfig index ed802d68..6b46728e 100644 --- a/wire/.editorconfig +++ b/wire/.editorconfig @@ -11,21 +11,18 @@ end_of_line = lf [*.{php,inc,module}] -tab_width = 4 indent_style = tab trim_trailing_whitespace = false insert_final_newline = true [*.js] -tab_width = 4 indent_style = tab trim_trailing_whitespace = true insert_final_newline = true [*.{css,less,scss}] -tab_width = 2 indent_style = tab trim_trailing_whitespace = true insert_final_newline = true