diff options
| author | binarycat <binarycat@envs.net> | 2025-07-29 11:51:43 -0500 |
|---|---|---|
| committer | binarycat <binarycat@envs.net> | 2025-08-08 11:15:28 -0500 |
| commit | 7af87d18d2ebe93f30221abd0d6de11ff8fcd5c1 (patch) | |
| tree | 6db8192b3bf248222d69a77d7999df5340b9918f /.editorconfig | |
| parent | 9ba00e0f9e00990fb88c1beac7172afe93b15609 (diff) | |
| download | rust-7af87d18d2ebe93f30221abd0d6de11ff8fcd5c1.tar.gz rust-7af87d18d2ebe93f30221abd0d6de11ff8fcd5c1.zip | |
editorconfig: don't trim trailing whitespace in tests
Diffstat (limited to '.editorconfig')
| -rw-r--r-- | .editorconfig | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/.editorconfig b/.editorconfig index ef8ed24c52a..1b137cf4ebe 100644 --- a/.editorconfig +++ b/.editorconfig @@ -7,9 +7,18 @@ root = true [*] end_of_line = lf charset = utf-8 -trim_trailing_whitespace = true insert_final_newline = true +# some tests need trailing whitespace in output snapshots +[!tests/] +trim_trailing_whitespace = true +# for actual source code files of test, we still don't want trailing whitespace +[tests/**.{rs,js}] +trim_trailing_whitespace = true +# these specific source files need to have trailing whitespace. +[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 |
