-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.editorconfig
More file actions
90 lines (74 loc) · 2.29 KB
/
.editorconfig
File metadata and controls
90 lines (74 loc) · 2.29 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
# Root EditorConfig file for consistent style across editors
root = true
# ============================================
# Global defaults (apply to all files)
# ============================================
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
# ============================================
# Java (Java 17/21+ style)
# ============================================
[*.java]
indent_style = space
indent_size = 4
continuation_indent_size = 8
max_line_length = 120
tab_width = 4
# IntelliJ-specific hints (helpful when using IntelliJ)
# Note: Spotless / Checkstyle do NOT read these; they are IDE directives.
ij_continuation_indent_for_chained_methods = true
ij_continuation_indent_for_binary_operations = true
ij_continuation_indent_for_expressions = true
# Import / on-demand thresholds (IntelliJ only)
ij_java_imports_layout = java,javax,*,org,com,blank,#
ij_java_class_count_to_use_import_on_demand = 9999
ij_java_names_count_to_use_import_on_demand = 9999
# Keep text block breaks (useful for Java text blocks)
ij_java_keep_line_breaks = true
# Spaces around control statements (IntelliJ hints)
ij_java_space_before_if_parentheses = true
ij_java_space_before_for_parentheses = true
ij_java_space_before_while_parentheses = true
ij_java_space_before_switch_parentheses = true
# Disable aggressive wrapping inside records/pattern matching (IntelliJ hint)
ij_java_wrap_long_lines = false
# ============================================
# Gradle / build files
# ============================================
[*.gradle]
indent_style = space
indent_size = 4
[*.gradle.kts]
indent_style = space
indent_size = 4
# ============================================
# JSON / YAML
# ============================================
[*.json]
indent_size = 2
[*.yml]
indent_size = 2
[*.yaml]
indent_size = 2
# ============================================
# Markdown
# ============================================
[*.md]
max_line_length = off
trim_trailing_whitespace = false
# ============================================
# XML / HTML
# ============================================
[*.xml]
indent_size = 2
[*.html]
indent_size = 2
# ============================================
# Properties files
# ============================================
[*.properties]
indent_style = space
indent_size = 2