-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.editorconfig
More file actions
114 lines (99 loc) · 2.9 KB
/
.editorconfig
File metadata and controls
114 lines (99 loc) · 2.9 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
# EditorConfig: https://editorconfig.org
# Top-most EditorConfig file
root = true
###############################################################################
# Default Settings for All Files
###############################################################################
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2
tab_width = 2
max_line_length = 120
ktlint_code_style = intellij_idea
ktlint_standard_no-wildcard-imports = disabled
shell_variant = bash
spaces_around_operators = true
spaces_around_brackets = false
keep_padding = false
space_redirects = false
switch_case_indent = false
function_next_line = false
binary_next_line = true
###############################################################################
# Shell Scripts
###############################################################################
# Fish
[**.{fish,fish_*},fishd.*,fish_*]
indent_style = space
indent_size = 4
tab_width = 2
# Windows shell scripts
[**.{bat,cmd,ps1,psm1}]
indent_style = tab
indent_size = 4
tab_width = 2
end_of_line = crlf
###############################################################################
# Programming Languages
###############################################################################
# C/C++
[**.{c,cc,cpp,cxx,h,hpp,hxx}]
indent_style = space
indent_size = 4
max_line_length = 100
# C#, Java, PHP, Perl
[**.{cs,java,php,pl,pm}]
indent_style = space
indent_size = 4
max_line_length = 120
# Go (requires tabs)
[**.go,go.mod,go.sum]
indent_style = tab
indent_size = 4
tab_width = 4
# Rust & Zig
[**.{rs,zig}]
indent_style = space
indent_size = 4
###############################################################################
# Configuration / Data Files
###############################################################################
# JSON, YAML, TOML
[**.{json,json5,jsonc,yml,yaml,toml}]
indent_style = space
indent_size = 2
max_line_length = 120
# XML / HTML
[**.{xml,html,htm}]
indent_size = 4
[**.svg]
indent_style = space
indent_size = 2
###############################################################################
# Markup / Documentation
###############################################################################
[**.{md,markdown}]
max_line_length = 88
trim_trailing_whitespace = false
[**.{rst,txt}]
trim_trailing_whitespace = false
[**.{patch,diff}]
trim_trailing_whitespace = false
###############################################################################
# Build Systems & Package Managers
###############################################################################
# Makefiles (require tabs)
[{Makefile,**.mk,.gitmodules}]
indent_style = tab
indent_size = 4
tab_width = 4
###############################################################################
# Special Cases
###############################################################################
# Minified files
[**.min.{js,css}]
insert_final_newline = false