about summary refs log tree commit diff
path: root/.editorconfig
diff options
context:
space:
mode:
authorbinarycat <binarycat@envs.net>2025-08-24 10:37:19 -0500
committerbinarycat <binarycat@envs.net>2025-08-24 10:37:19 -0500
commit3b627b5a4909bf17ab55ceeb0b31e70280b49189 (patch)
tree9df2c3f9ac6c2116f0ceb44acfa04ea54b3028a5 /.editorconfig
parent41a79f1862aa6b81bac674598e275e80e9f09eb9 (diff)
downloadrust-3b627b5a4909bf17ab55ceeb0b31e70280b49189.tar.gz
rust-3b627b5a4909bf17ab55ceeb0b31e70280b49189.zip
editorconfig: don't use nonexistant syntax
reading through the editorconfig spec, using `!` to negate
an entire glob is simply not a feature.

you can use `!` to negate a charachter class, but that's not
what was going on here.
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig13
1 files changed, 8 insertions, 5 deletions
diff --git a/.editorconfig b/.editorconfig
index 1b137cf4ebe..6c8560aa1f5 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -8,10 +8,13 @@ root = true
 end_of_line = lf
 charset = utf-8
 insert_final_newline = true
+trim_trailing_whitespace = true
+indent_style = space
+indent_size = 4
 
 # some tests need trailing whitespace in output snapshots
-[!tests/]
-trim_trailing_whitespace = true
+[tests/**]
+trim_trailing_whitespace = false
 # for actual source code files of test, we still don't want trailing whitespace
 [tests/**.{rs,js}]
 trim_trailing_whitespace = true
@@ -19,9 +22,9 @@ trim_trailing_whitespace = true
 [tests/ui/{frontmatter/frontmatter-whitespace-3.rs,parser/shebang/shebang-space.rs}]
 trim_trailing_whitespace = false
 
-[!src/llvm-project]
-indent_style = space
-indent_size = 4
+[src/llvm-project]
+indent_style = unset
+indent_size = unset
 
 [*.rs]
 max_line_length = 100