forked from openfoodfacts/openfoodfacts-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.editorconfig
More file actions
24 lines (21 loc) · 718 Bytes
/
.editorconfig
File metadata and controls
24 lines (21 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# "EditorConfig helps developers maintain consistent coding styles between different editors"
# Many editors support EditorConfig, check: https://editorconfig.org
root = true
# Default for all files:
# * UTF8 charset, unix-style newlines (lf), 2 spaces indentation
# * ensure files ends with a newline when savings (insert_final_newline)
# * remove any whitespace characters preceding newline characters (trim_trailing_whitespace)
[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
# Perl files: tab indentation (4 spaces)
[*.{pm,pl,t}]
indent_style = tab
indent_size = 4
# Python files: 4 spaces indentation
[*.py]
indent_size = 4