forked from tprasadtp/ubuntu-post-install
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
55 lines (45 loc) · 1.06 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
root = true
# Default
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 80
trim_trailing_whitespace = true
# Makefiles and Make Templates
[{Makefile,GNUMakefile,*.mk}]
indent_style = tab
indent_size = 4
# Shellscripts
[{*.sh,*.bash}]
indent_size = 2 # like -i=2
indent_style = space
shell_variant = bash
binary_next_line = true # like -bn
switch_case_indent = true # like -ci
# space_redirects = true # like -sr
# keep_padding = true # like -kp
function_next_line = true # like -fn
# YAML
[{*.yml,*.yaml}]
indent_size = 2
indent_style = space
# Go
# https://golang.org/cmd/gofmt/
[{go.mod,go.sum,*.go}]
indent_style = tab
indent_size = 4
# Go golden test files
[*.golden.txt]
insert_final_newline = false
trim_trailing_whitespace = false
end_of_line = unset
indent_size = unset
indent_size = unset
charset = unset
[Dockerfile]
indent_size = 4
# diana:{diana_urn_flavor}:{remote}:{source}:{version}:{remote_path}:{type}
# diana:2:github:tprasadtp/templates::core/.editorconfig:static