summaryrefslogtreecommitdiff
path: root/.editorconfig
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-20 13:56:08 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-20 13:56:08 -0600
commit318162fdf1ff86297afcce334f61d2d6ff5e3345 (patch)
treee2b805c86ab7616c57f7ba3b0ed5181aa51103b7 /.editorconfig
parent5b54ce0a9e7708e373ecb28669f3ef1e2332e783 (diff)
Makefile: Use editorconfig for lint/format
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig35
1 files changed, 34 insertions, 1 deletions
diff --git a/.editorconfig b/.editorconfig
index fa5f176..2aa13e7 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -1,4 +1,4 @@
-# .editorconfig - How files in sbc_harness should be formatted
+# .editorconfig - How files in sbc-harness should be formatted
#
# Copyright (C) 2024 Luke T. Shumaker <lukeshu@lukeshu.com>
# SPDX-Licence-Identifier: AGPL-3.0-or-later
@@ -6,8 +6,41 @@
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
+
+[Makefile]
+_mode = make
+
+[{CMakeLists.txt,*.cmake}]
+_mode = cmake
+
+[*.md]
+_mode = markdown
+
+[*.9p{,.wip}]
+_mode = 9p
+
+[{3rd-party/linux-errno.txt.gen,cmd/srv9p/static.h.gen}]
+_mode = sh
+
+[libusb/include/libusb/tusb_helpers.h.gen]
+_mode = bash
+
+[{lib9p/idl.gen,lib9p/include/lib9p/linux-errno.h.gen}]
+_mode = python3
+
+[{.editorconfig,.gitmodules}]
+_mode = ini
+
+[.gitignore]
+_mode = gitignore