-
Notifications
You must be signed in to change notification settings - Fork 82
Expand file tree
/
Copy path.editorconfig
More file actions
129 lines (110 loc) · 2.34 KB
/
.editorconfig
File metadata and controls
129 lines (110 loc) · 2.34 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
# SPDX-License-Identifier: MPL-2.0
# See https://spec.editorconfig.org/
# See https://editorconfig.org/
root = true
# Rules for all files
[*]
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
spelling_language = en-US
# Rules for C and C++ source files
[*.{c, h, cpp, hpp}]
indent_style = space
indent_size = 4
# Do not specify line endings since git's checkout will set to system's native value
end_of_line = unset
# Microsoft resource files
[*.rc]
indent_style = space
indent_size = 4
charset = utf-8-bom
end_of_line = crlf
# Rules for Makefiles
[Makefile,GNUMakefile,GNUmakefile,Makefile.gccWin]
indent_style = tab
end_of_line = lf
# Shell script rules
[*.sh]
indent_style = space
indent_size = 4
end_of_line = lf
# Batch files
[*.{bat, cmd}]
end_of_line = crlf
charset = utf-8-bom
indent_size = 4
indent_style = space
tab_width = 4
# Powershell scripts
[*.ps1]
indent_style = space
indent_size = 4
end_of_line = crlf
charset = utf-8-bom
# Clang format and tidy configuration files
[.clang-format]
indent_style = space
indent_size = 4
end_of_line = lf
[.clang-tidy]
indent_style = space
indent_size = 4
end_of_line = lf
# Configuration/CI/YAML/JSON/XML files
[*.{yaml,yml,xml,json,whitesource,ini,cfg,toml,conf}]
indent_style = space
indent_size = 2
charset = utf-8
end_of_line = lf
# Markdown files
[*.md]
indent_style = space
indent_size = 2
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = false
# Git configuration files
[.{gitattributes,gitignore,gitmodules}]
indent_style = space
indent_size = 2
charset = utf-8
end_of_line = lf
# Generic text files
[*.txt]
indent_style = space
indent_size = 2
charset = utf-8
end_of_line = crlf # For Windows compatibility when editors don't understand unix line endings
# Visual studio
[*.{vcxproj,csproj,sln,vcxproj.filters}]
indent_style = space
indent_size = 2
charset = utf-8-bom
end_of_line = crlf
# UEFI build files
[*.{dec,dsc,inf}]
indent_style = space
indent_size = 4
end_of_line = lf
# Python files
[*.py]
indent_style = space
indent_size = 4
charset = utf-8
end_of_line = lf
# Meson build files
[meson.build,meson_options.txt,meson.options]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
max_line_length = 120
insert_final_newline = true
tab_width = 4
# Meson subproject wrappers
[*.wrap]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8