-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.editorconfig
More file actions
69 lines (59 loc) · 2.4 KB
/
Copy path.editorconfig
File metadata and controls
69 lines (59 loc) · 2.4 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
###############################################################################
# .editorconfig
# Purpose: Enforce consistent formatting matching Bash 4+ and shfmt CI policies.
###############################################################################
root = true
###############################################################################
# Global Defaults
###############################################################################
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
###############################################################################
# Shell Scripts (Bash, Zsh, sh)
# Matches: shfmt -i 4 -ci -sr -ln bash
###############################################################################
[*.{sh,bash,zsh}]
# shfmt Configuration
shell_variant = bash # -ln bash
switch_case_indent = true # -ci
space_redirects = true # -sr
function_next_line = false # -fn
binary_next_line = false # Prevent binary ops from forcing newlines
###############################################################################
# BATS Unit Tests
###############################################################################
[*.bats]
shell_variant = bash
###############################################################################
# YAML
###############################################################################
[*.{yml,yaml}]
indent_size = 2
###############################################################################
# Markdown
###############################################################################
[*.md]
indent_size = 2
trim_trailing_whitespace = false # Allow intentional hard line breaks
###############################################################################
# Git Commit Messages
###############################################################################
[COMMIT_EDITMSG]
max_line_length = 72
###############################################################################
# Ignore Binary & Vendor Assets
# (Unset properties to prevent editors from touching these files)
###############################################################################
[*.{png,jpg,jpeg,gif,svg,ico,bin,pdf,zip,tar,gz}]
indent_style = unset
trim_trailing_whitespace = unset
insert_final_newline = unset
[third_party/**]
indent_style = unset
trim_trailing_whitespace = unset
insert_final_newline = unset