summaryrefslogtreecommitdiff
path: root/.editorconfig
blob: 4bf1ae12f1b1c5ea471169b2f779a99fe345ed4d (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
# .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

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

[GNUmakefile]
_mode = make

[CMakeLists.txt]
_mode = cmake

[*.md]
_mode = markdown

[*.9p{,.wip}]
_mode = 9p

[{lib9p/tests/test_server/static.h.gen,build-aux/embed-sources.h.gen,build-aux/lint-{generic,unknown},build-aux/get-dscname}]
_mode = sh

[{build-aux/lint-h,build-aux/lint-bin,build-aux/linux-errno.txt.gen,libusb/include/libusb/tusb_helpers.h.gen,lib9p/tests/runtest}]
_mode = bash

[{lib9p/idl.gen,lib9p/include/lib9p/linux-errno.h.gen,build-aux/stack.c.gen}]
_mode = python3
indent_style = space
indent_size = 4

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

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

[.gitignore]
_mode = gitignore