-
-
Notifications
You must be signed in to change notification settings - Fork 426
Expand file tree
/
Copy path.editorconfig
More file actions
151 lines (122 loc) · 3.28 KB
/
.editorconfig
File metadata and controls
151 lines (122 loc) · 3.28 KB
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# EditorConfig: https://editorconfig.org
# Rules are read from top to bottom, the most recent rule found applies
# Some basic properties are supported by all editor plugins
# top-most EditorConfig file
root = true
# General settings
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true
[*.{htm,html,js,css,svg}]
indent_size = 2
[*.{xml,config}]
indent_size = 2
# Scripts
[{*.sh,mswindows/osgeo4w/*config}]
end_of_line = unset
indent_size = unset
# TODO: To enable when files are fixed:
# end_of_line = lf
# indent_size = 4
# TODO: remove when the previous section is fixed
[*.sh]
end_of_line = lf
indent_size = 4
# These are explicitly windows files and should use crlf
[*.{bat,cmd,ps1}{.tmpl,}]
end_of_line = crlf
# TODO: remove when fixed
[mswindows/GRASS-Packager.bat.tmpl]
end_of_line = unset
insert_final_newline = unset
# TODO: remove when fixed
[mswindows/osgeo4w/*.{bat,bat.tmpl}]
end_of_line = unset
insert_final_newline = unset
[*.{c,h,cpp,hpp}]
indent_size = 4
[{*.js,*.json,*.json5,*.mjs,*.cjs}]
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
insert_final_newline = true
[*.js]
block_comment_start = /**
block_comment = *
block_comment_end = */
[*.ipynb]
end_of_line = lf
[{*.py, *.pyi}]
charset = utf-8
indent_style = space
# TODO: To enable when files are fixed:
# indent_size = 4
# max_line_length = 88
[{Makefile,*.make,*.make.in}]
# TODO: To enable when files are fixed:
# indent_style = tab
indent_size = 4
[*.y{a,}ml]
indent_style = space
indent_size = 2
# Patch files
[*.patch]
trim_trailing_whitespace = false
# TODO: To enable when files are fixed:
# # CSVs use CRLF as defined in RFC 4180
# [*.csv]
# end_of_line = crlf
[*.md]
# Two trailing whitespace in markdown means to create a line break
# https://www.markdownguide.org/basic-syntax/#line-breaks
trim_trailing_whitespace = false
indent_style = space
# TODO: To enable when files are fixed:
# indent_size = 2
# Exclude some files from rules
[*.{ascii,asc,ref,po,ps,svg}]
trim_trailing_whitespace = unset
end_of_line = unset
charset = unset
insert_final_newline = unset
[{**/testsuite/data/**,mswindows/osgeo4w/envdiff.sed}]
trim_trailing_whitespace = unset
end_of_line = unset
charset = unset
insert_final_newline = unset
[python/libgrass_interface_generator/ctypesgen/parser/parsetab.py]
trim_trailing_whitespace = false
[mswindows/{generic.manifest,Installer-Files/*.url}]
end_of_line = unset # TODO: remove when fixed
insert_final_newline = unset # TODO: remove when fixed
# TODO: To enable when files are fixed:
# end_of_line = crlf
# TODO: remove when .editorconfig is properly set up
[mswindows/external/**]
end_of_line = unset
insert_final_newline = unset
# TODO: remove when fixed
[mswindows/external/rbatch/*.bat]
trim_trailing_whitespace = unset
# TODO: remove when fixed
[.github/workflows/*.bat]
end_of_line = unset
insert_final_newline = unset
# Binary files
[**/PERMANENT/vector/*/{cidx,coor,sidx,topo}]
trim_trailing_whitespace = unset
end_of_line = unset
charset = unset
insert_final_newline = unset
[*.{laz,raw,rgb}]
trim_trailing_whitespace = unset
end_of_line = unset
charset = unset
insert_final_newline = unset
[{lib/vector/diglib/test*.ok,**/*.nib/keyedobjects.nib}]
trim_trailing_whitespace = unset
end_of_line = unset
charset = unset
insert_final_newline = unset