From 17375aafa149df0da29835847035f622f7148897 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Soucaze?= Date: Fri, 25 Sep 2015 17:39:33 +0200 Subject: [PATCH 1/3] Add .editorconfig for consistent coding styles --- extensions/lang-english/.editorconfig | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 extensions/lang-english/.editorconfig diff --git a/extensions/lang-english/.editorconfig b/extensions/lang-english/.editorconfig new file mode 100644 index 000000000..72e9364d7 --- /dev/null +++ b/extensions/lang-english/.editorconfig @@ -0,0 +1,17 @@ +# http://editorconfig.org/ + +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.{json,php}] +indent_size = 4 + +[*.md] +trim_trailing_whitespace = false From cd02134e090e5f4eb604dbecdad4fd746c86b0d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Soucaze?= Date: Fri, 25 Sep 2015 17:42:09 +0200 Subject: [PATCH 2/3] Normalize line endings and export-ignore Ensure to normalize line endings to Unix (LF) and exclude some extra files which are uncessary to the extension itself when exporting an archive. --- extensions/lang-english/.gitattributes | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 extensions/lang-english/.gitattributes diff --git a/extensions/lang-english/.gitattributes b/extensions/lang-english/.gitattributes new file mode 100644 index 000000000..542973100 --- /dev/null +++ b/extensions/lang-english/.gitattributes @@ -0,0 +1,21 @@ +# Automatically normalize line endings for all text-based files +# http://git-scm.com/docs/gitattributes#_end_of_line_conversion +* text=auto + +# For the following file types, normalize line endings to LF on +# check in and prevent conversion to CRLF when they are checked out +# (this is required in order to prevent newline related issues like, +# for example, after the build script is run) +.* text eol=lf +*.js text eol=lf +*.json text eol=lf +*.md text eol=lf +*.php text eol=lf +*.yml text eol=lf + +# Exclude the following files when exporting an archive +# https://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes#Exporting-Your-Repository +.editorconfig export-ignore +.gitattributes export-ignore +.gitignore export-ignore +README.md export-ignore From 70489092841feaecae3478635e803b2c71e72876 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Soucaze?= Date: Fri, 25 Sep 2015 17:43:47 +0200 Subject: [PATCH 3/3] Ignore junks files to be added It includes common OS junk files, some common backup and log files and ensure that .git is ignored. --- extensions/lang-english/.gitignore | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 extensions/lang-english/.gitignore diff --git a/extensions/lang-english/.gitignore b/extensions/lang-english/.gitignore new file mode 100644 index 000000000..7f2c67c26 --- /dev/null +++ b/extensions/lang-english/.gitignore @@ -0,0 +1,40 @@ +# Windows +Thumbs.db +ehthumbs.db +Desktop.ini +$RECYCLE.BIN/ +*.cab +*.msi +*.msm +*.msp +*.lnk + +# Mac OS +.DS_Store +.AppleDouble +.LSOverride +Icon +._* +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +# Linux +*~ +.directory +.Trash-* + +# Backup and log files +*.bak +*.log + +# Git +.git