-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.editorconfig
58 lines (49 loc) · 1.2 KB
/
.editorconfig
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
# SPDX-FileCopyrightText: 2023 Pablo Hörtner <redtux@pm.me>
# SPDX-License-Identifier: AGPL-3.0-or-later
#
# Copyright © 2023 by Pablo Hörtner <redtux@pm.me>. All rights reserved.
# You can find the AGPL v3.0 here: https://www.gnu.org/licenses/agpl-3.0
# Attribution required if you use this EditorConfig file in your project.
#
# EditorConfig Style Guidelines
# @see https://EditorConfig.org
# top-most EditorConfig file
root = true
# Our default configuration:
# Unix-style newlines with a
# newline ending every file.
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 80
trim_trailing_whitespace = true
[Dockerfile]
indent_size = 2
# Makefiles and Make Templates
[{Makefile,GNUMakefile,*.mk}]
indent_style = tab
indent_size = 4
# Markdown
[*.md]
trim_trailing_whitespace = false
# Python
[*.py]
indent_size = 4
indent_style = space
# Go
# https://golang.org/cmd/gofmt/
[{go.mod,go.sum,*.go}]
indent_style = tab
indent_size = 4
# YAML
[{*.yml,*.yaml}]
indent_size = 2
# Shell scripts
[*.sh]
max_line_length = 80
keep_padding = true # shfmt: -kp
space_redirects = true # shfmt: -sr
switch_case_indent = true # shfmt: -ci