forked from postgis/postgis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
98 lines (75 loc) · 1.89 KB
/
.editorconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# http://editorconfig.org
# top-most EditorConfig file
root = true
# these are the defaults
[*]
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
[*_expected]
trim_trailing_whitespace = false
# C files want tab indentation
[*.{c,h,h.in}]
indent_style = tab
# Perl files want tab indentation
[*.pl]
indent_style = tab
[topology/loader/*.sh]
indent_style = space
indent_size = 2
# Exception: utils/create_upgrade.pl uses 4-spaces indent
[utils/create_upgrade.pl]
indent_style = space
indent_size = 4
# Exception: utils/create_extension_unpackage.pl uses 2-spaces indent
[utils/create_extension_unpackage.pl]
indent_style = space
indent_size = 2
# Exception: regress/run_test.pl uses 4-spaces indent
[regress/run_test.pl]
indent_style = space
indent_size = 4
# Exception: loader/postgis.pl uses 2-spaces indent
[loader/postgis.pl]
indent_style = space
indent_size = 2
# SQL files want tab indentation
[*.{sql,sql.in}]
indent_style = tab
# topology C files want space indentation
[topology/*.{c,h}]
indent_style = space
indent_size = 2
# topology C files want space indentation
[liblwgeom/topo/**.{c,h}]
indent_style = space
[liblwgeom/lwgeom_log.h]
indent_style = space
# topology SQL files want space indentation
[topology/**.{sql,sql.in}]
indent_style = space
# topology/clean SQL files want 2-space indentation
[topology/sql/cleanup/**.{sql,sql.in}]
indent_size = 2
# postgis/sfcgal.sql.in wants space indentation
[postgis/sfcgal.sql.in]
indent_style = space
# .h.in files want space indentation
[*.h.in]
indent_style = space
# Makefiles want tab indentation
[{Makefile.in,Makefile,GNUmakefile.in}]
indent_style = tab
# .bat files want CRLF
[*.bat]
end_of_line = crlf
# Docbook should be space cause tabs are mangled in html
[*.xml]
indent_style = space
indent_size = 4
[*.xsl]
indent_style = tab
[postgis/common_after_upgrade.sql]
indent_style = space
indent_size = 4