# .editorconfig - How files in sbc-harness should be formatted # # Copyright (C) 2024-2025 Luke T. Shumaker # 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