-
Notifications
You must be signed in to change notification settings - Fork 187
Expand file tree
/
Copy path.editorconfig
More file actions
126 lines (100 loc) · 2.68 KB
/
Copy path.editorconfig
File metadata and controls
126 lines (100 loc) · 2.68 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
# 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
# TODO: Remove section when editorconfig-checker fixed the detection of encoding
[src/gui/wxpython/wx.metadata/profiles/*.xml]
charset =
# 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
[*.{c,h,cpp,hpp}]
indent_size = 2
[{*.js,*.json,*.jsonc,*.json5,*.mjs,*.cjs}]
indent_style = space
indent_size = 4
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,diff}]
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,rtf,po,ps,svg}]
trim_trailing_whitespace = unset
end_of_line = unset
charset = unset
insert_final_newline = unset
[{**/testsuite/data/**,mswindows/osgeo4w/envdiff.sed,src/raster/r.soils.texture/scheme/*.dat}]
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
# 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