-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.editorconfig
More file actions
41 lines (33 loc) · 2.05 KB
/
Copy path.editorconfig
File metadata and controls
41 lines (33 loc) · 2.05 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
# EditorConfig — https://editorconfig.org
root = true
# ── Defaults for all files ────────────────────────────────────────────────────
[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true
# ── Java ──────────────────────────────────────────────────────────────────────
[*.java]
max_line_length = 200
# ── Build & Config (XML / POM) ────────────────────────────────────────────────
[{pom.xml,*.xml,*.xsd}]
indent_size = 4
max_line_length = 200
# ── Web / Cloud Config ────────────────────────────────────────────────────────
[*.{yml,yaml,json}]
indent_size = 2
# ── Markdown ──────────────────────────────────────────────────────────────────
# Trailing spaces are significant in Markdown (line break); keep them.
[*.md]
trim_trailing_whitespace = false
max_line_length = off
# ── Shell scripts ─────────────────────────────────────────────────────────────
[*.sh]
indent_size = 2
end_of_line = lf
# ── Git Metadata ──────────────────────────────────────────────────────────────
# Ensure consistent line endings for git-related files
[{.gitignore,.gitattributes}]
end_of_line = lf