-
-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy path.editorconfig
More file actions
81 lines (63 loc) · 2.33 KB
/
.editorconfig
File metadata and controls
81 lines (63 loc) · 2.33 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
# .editorconfig for the Exercism AWK track repository
# https://spec.editorconfig.org/
# Top-most EditorConfig file
# A best practice to prevent settings from parent directories from interfering.
root = true
# Universal settings for all files. These are the baseline rules.
[*]
# Sets the character set to UTF-8, the universal standard for text files.
charset = utf-8
# Enforces Unix-style line endings (LF)
end_of_line = lf
# Ensures files are POSIX-compliant and prevents issues with some command-line tools.
insert_final_newline = true
# Keeps the codebase clean and avoids noise in diffs.
trim_trailing_whitespace = true
# Specifies the language for the IDE's spell checker.
spelling_language = en-US
# Settings for files we edit, overriding universal settings where needed.
# AWK solution/example files use 4-space indentation.
# max_line_length is unset here because some files contain very long
# lines with embedded data, making a fixed line length impractical.
[*.awk]
indent_style = space
indent_size = 4
max_line_length = unset
# BATS test files use 4-space indentation.
# max_line_length is unset here because some test files contain very long
# lines with embedded data, making a fixed line length impractical.
[*.bats]
indent_style = space
indent_size = 4
max_line_length = unset
# For Markdown files, specific settings are needed to preserve formatting.
[*.md]
# Disable trimming trailing whitespace, as two spaces can create a hard line break.
trim_trailing_whitespace = false
max_line_length = unset
# Override for common data and config formats to use 2-space indentation
# and disable line length checks, as they often contain long strings.
[*.{json,yml,yaml,xml}]
indent_size = 2
indent_style = space
max_line_length = unset
# This is an auto-generated file.
[tests.toml]
indent_size = unset
indent_style = unset
# Shell scripts in the bin directory are hand-written, so a line length
# limit improves readability.
[bin/*]
indent_style = space
indent_size = 4
max_line_length = 120
# This file is a copy of the
# https://github.com/exercism/configlet/blob/main/scripts/fetch-configlet file.
[bin/fetch-configlet*]
indent_size = unset
indent_style = unset
# The formatting of a LICENSE file is often fixed and should not be altered.
# Unsetting these rules prevents the editor from modifying it.
[LICENSE]
indent_size = unset
indent_style = unset