diff options
Diffstat (limited to '.editorconfig')
-rw-r--r-- | .editorconfig | 51 |
1 files changed, 41 insertions, 10 deletions
diff --git a/.editorconfig b/.editorconfig index 62b7bb2..d281cf0 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,6 +1,6 @@ # .editorconfig - How files in sbc-harness should be formatted # -# Copyright (C) 2024 Luke T. Shumaker <lukeshu@lukeshu.com> +# Copyright (C) 2024-2025 Luke T. Shumaker <lukeshu@lukeshu.com> # SPDX-License-Identifier: AGPL-3.0-or-later root = true @@ -15,6 +15,8 @@ indent_style = tab insert_final_newline = true trim_trailing_whitespace = true +# By well-known name ########################################################### + [*.{c,h}] _mode = c @@ -27,22 +29,51 @@ _mode = cmake [*.md] _mode = markdown -[*.9p{,.wip}] -_mode = 9p +[*.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) ############################################# -[{cmd/srv9p/static.h.gen,build-aux/embed-sources.h.gen}] +[{build-aux/embed-sources.h.gen,build-aux/valgrind,libmisc/tests/test_obj_autobox.c.gen}] _mode = sh -[{build-aux/linux-errno.txt.gen,libusb/include/libusb/tusb_helpers.h.gen}] +[{build-aux/lint-{src,bin},build-aux/gcov-prune,libmisc/error_generated.c.gen,libusb/include/libusb/tusb_helpers.h.gen}] _mode = bash -[{lib9p/idl.gen,lib9p/include/lib9p/linux-errno.h.gen,build-aux/stack.c.gen,gdb-helpers/*.py}] +[{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 -[{.editorconfig,.gitmodules}] -_mode = ini +[**/Documentation/**.txt] +_mode = man-cat -[.gitignore] -_mode = gitignore +# 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 |