diff options
author | VirtualTam <virtualtam+github@flibidi.net> | 2017-10-16 19:18:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-16 19:18:29 +0200 |
commit | 839566500c31c139ad5e1ddd728633869c118a44 (patch) | |
tree | 1bfc15ca1d5740ab8ca66fe847c29adfc0966fa7 | |
parent | 9f32160c323e77237e4051056c1f1061586cc12e (diff) | |
parent | e9619cc4f8717c1b8b66f60998cf8402bb983349 (diff) | |
download | Shaarli-839566500c31c139ad5e1ddd728633869c118a44.tar.gz Shaarli-839566500c31c139ad5e1ddd728633869c118a44.tar.zst Shaarli-839566500c31c139ad5e1ddd728633869c118a44.zip |
Merge pull request #995 from virtualtam/lint/editorconfig
Add EditorConfig configuration
-rw-r--r-- | .editorconfig | 23 | ||||
-rw-r--r-- | .gitattributes | 1 |
2 files changed, 24 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..5abbd7bf --- /dev/null +++ b/.editorconfig | |||
@@ -0,0 +1,23 @@ | |||
1 | # EditorConfig: http://EditorConfig.org | ||
2 | |||
3 | root = true | ||
4 | |||
5 | [*] | ||
6 | charset = utf-8 | ||
7 | end_of_line = lf | ||
8 | insert_final_newline = true | ||
9 | trim_trailing_whitespace = true | ||
10 | indent_style = space | ||
11 | indent_size = 4 | ||
12 | |||
13 | [*.{html,xml}] | ||
14 | indent_size = 2 | ||
15 | |||
16 | [*.php] | ||
17 | max_line_length = 100 | ||
18 | |||
19 | [Dockerfile] | ||
20 | max_line_length = 80 | ||
21 | |||
22 | [Makefile] | ||
23 | indent_style = tab | ||
diff --git a/.gitattributes b/.gitattributes index dd0e573c..93900602 100644 --- a/.gitattributes +++ b/.gitattributes | |||
@@ -24,6 +24,7 @@ Dockerfile text | |||
24 | *.min.js binary | 24 | *.min.js binary |
25 | 25 | ||
26 | # Exclude from Git archives | 26 | # Exclude from Git archives |
27 | .editorconfig export-ignore | ||
27 | .gitattributes export-ignore | 28 | .gitattributes export-ignore |
28 | .github export-ignore | 29 | .github export-ignore |
29 | .gitignore export-ignore | 30 | .gitignore export-ignore |