-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
66 lines (53 loc) · 1.49 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
# EditorConfig is awesome
# http://EditorConfig.org
#
# This file is based on The Common EditorConfig Template project
# https://github.com/the-common/editorconfig-template
#
# Copyright 2021 林博仁(Buo-ren, Lin) <[email protected]>
# SPDX-License-Identifier: WTFPL
# This is the top-most EditorConfig file
root = true
# Common settings
[*]
end_of_line = lf
indent_style = space
indent_size = 4
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true
# Git configuration files uses tabs as indentation units
[/.git{modules,config}]
indent_style = tab
# Avoid git patch fail to apply due to stripped unmodified lines that contains only spaces
[/.git/**]
trim_trailing_whitespace = false
# Makefiles for *Make
[{Makefile,*.mk}]
indent_style = tab
# Markdown documents
[*.{md,mkd,mkdn,markdown}]
# Trailing whitespace means manual linebreaks
trim_trailing_whitespace = false
# Don't check indentation size as it can't handle intentional indentation
# in list item after hardbreaks to align with the node markers, use
# Markdownlint to check instead
indent_size = unset
[*.{diff,patch}]
# Trailing whitespaces are unchanged lines in patch files
trim_trailing_whitespace = false
# Vagrant configuration file
[Vagrantfile]
indent_size = 2
# yamllint configuration files
[.yamllint]
indent_size = 2
# YAML documents
[*.{yml,yaml}]
indent_size = 2
[.*.{yml,yaml}]
indent_size = 2
# Keep the indentation style of the license text verbatim
[/LICENSES/*]
indent_size = unset
indent_style = unset