summaryrefslogtreecommitdiff
path: root/.editorconfig
blob: 14462fa7582c867d4d63fc85400853237419ecd6 (plain)
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
# http://editorconfig.org/

# Tabs are preferred where possible; this is the only accessible choice

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = tab
trim_trailing_whitespace = true

[*.rst]
indent_style = unset
indent_size = unset

[LICENSE.txt]
indent_style = unset
indent_size = unset

# Spaces are practically required for Nix C++ as magic strings won’t work
[*.nix]
indent_style = space
indent_size = 3

[dune]
indent_style = space
indent_size = 1

[dune-project]
indent_style = space
indent_size = 1

[dune-workspace]
indent_style = space
indent_size = 1

# Dune is generating Opam files so I have no control. Should I skip Dune here?
[*.opam]
indent_style = unset
indent_size = unset