-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.editorconfig
68 lines (56 loc) · 1.37 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
# EditorConfig configuration for Serpent OS projects
# https://EditorConfig.org
# top-most EditorConfig file
root = true
# Serpent OS uses utf-8 exclusively for source code
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
# make it easier to distinguish between spaces and tabs ootb
# (using a default spaces indent of 2-4 for the kind of code we care about)
tab_width = 8
# Dlang
[*.d]
dfmt_align_switch_statements = true
dfmt_brace_style = allman
dfmt_outdent_attributes = true
dfmt_outdent_labels = true
dfmt_soft_max_line_length = 80
dfmt_space_after_cast = true
dfmt_space_after_keywords = true
dfmt_split_operator_at_line_end = false
indent_style = space
indent_size = 4
max_line_length = 120
# The meson project itself uses these settings
[*.build]
indent_style = space
indent_size = 4
# Useful for README.md etc.
[*.md]
indent_style = space
indent_size = 4
# Markdown specifies that two spaces at the end of a line counts as a linebreak
trim_trailing_whitespace = false
# Python upstream mandates these settings by default in PEP 8
[*.py]
indent_style = space
indent_size = 4
[*.sh]
indent_style = space
indent_size = 4
[makefile]
indent_style = tab
# Serpent OS stone.yml
[stone.yml]
indent_style = space
indent_size = 4
[*.{c,h}]
indent_style = space
indent_size = 8
# TODO: generic JSON?
[*.yml]
indent_style = space
indent_size = 4