-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.editorconfig
More file actions
65 lines (53 loc) · 2.44 KB
/
Copy path.editorconfig
File metadata and controls
65 lines (53 loc) · 2.44 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
# EditorConfig helps maintain consistent coding styles across various editors and IDEs.
# More info: https://editorconfig.org
root = true
##########################################################################
# Global Settings for All Files
##########################################################################
[*]
charset = utf-8 # Use UTF-8 encoding for all files
end_of_line = lf # Use LF for newlines
indent_size = 4 # Default indent size: 4 spaces
indent_style = space # Use spaces for indentation by default
insert_final_newline = true # Ensure files end with a newline
trim_trailing_whitespace = true # Remove any trailing whitespace
quote_type = single # Use single quotes by default
##########################################################################
# Specific Language/Framework Settings
##########################################################################
# Git Commit Messages
[COMMIT_EDITMSG]
max_line_length = 0 # No maximum line length
##########################################################################
# YAML Files
##########################################################################
[*.{yml,yaml}]
indent_size = 4 # Use 4 spaces for YAML files
quote_type = double # Use double quotes for YAML
##########################################################################
# Markdown Files
##########################################################################
[*.{md,markdown}]
trim_trailing_whitespace = false
max_line_length = 175 # Set maximum line length to 175 characters
indent_size = 2
[CHANGELOG]
trim_trailing_whitespace = false
max_line_length = 175 # Set maximum line length to 175 characters
indent_size = 2
##########################################################################
# JSON Files (and KICS config files)
##########################################################################
[**.json]
indent_size = 8
##########################################################################
# Makefile
##########################################################################
[Makefile]
indent_style = tab # Use tabs for Makefiles
##########################################################################
# Go Files and Related Configurations
##########################################################################
[*.{go,work,mod}]
indent_size = 4
indent_style = tab