summaryrefslogtreecommitdiff
path: root/.editorconfig
blob: d281cf0bdb30604989966cbcd79c92a19c132552 (plain)
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
# .editorconfig - How files in sbc-harness should be formatted
#
# Copyright (C) 2024-2025  Luke T. Shumaker <lukeshu@lukeshu.com>
# SPDX-License-Identifier: AGPL-3.0-or-later

root = true

[*]
# Custom (sbc-harness) options for scripting
_mode = unknown
# Standard (editorconfig.org) options
charset = utf-8
end_of_line = lf
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true

# By well-known name ###########################################################

[*.{c,h}]
_mode = c

[GNUmakefile]
_mode = make

[CMakeLists.txt]
_mode = cmake

[*.md]
_mode = markdown

[*.py]
_mode = python3
indent_style = space
indent_size = 4

[requirements.txt]
_mode = pip

[{.editorconfig,.gitmodules,.pylintrc}]
_mode = ini

[.gitignore]
_mode = gitignore

# By specific filename (non-lib9p) #############################################

[{build-aux/embed-sources.h.gen,build-aux/valgrind,libmisc/tests/test_obj_autobox.c.gen}]
_mode = sh

[{build-aux/lint-{src,bin},build-aux/gcov-prune,libmisc/error_generated.c.gen,libusb/include/libusb/tusb_helpers.h.gen}]
_mode = bash

[{build-aux/stack.c.gen,build-aux/tent-graph,libmisc/wrap-cc,lib9p_util/nut.h.gen}]
_mode = python3
indent_style = space
indent_size = 4

[**/Documentation/**.txt]
_mode = man-cat

# By specific filename (lib9p) #################################################

[lib9p/idl/*.9p{,.wip}]
_mode = 9p-idl

[lib9p/tests/*.explog]
_mode = 9p-log

[lib9p/tests/test_server/static.h.gen]
_mode = sh

[{lib9p/linux-errno.txt.gen,lib9p/srv_generated.c.gen,lib9p/tests/test_compile.c.gen,lib9p/tests/runtest,lib9p/tests/testclient-p9p}]
_mode = bash

[{lib9p/core.gen,lib9p/idl/2010-9P2000.L.9p.gen}]
_mode = python3
indent_style = space
indent_size = 4