editorconfig: don't trim trailing whitespace in tests
This commit is contained in:
parent
9ba00e0f9e
commit
7af87d18d2
1 changed files with 10 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue