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.
This commit is contained in:
@@ -8,10 +8,13 @@ root = true
|
|||||||
end_of_line = lf
|
end_of_line = lf
|
||||||
charset = utf-8
|
charset = utf-8
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
||||||
|
|
||||||
# some tests need trailing whitespace in output snapshots
|
# some tests need trailing whitespace in output snapshots
|
||||||
[!tests/]
|
[tests/**]
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = false
|
||||||
# for actual source code files of test, we still don't want trailing whitespace
|
# for actual source code files of test, we still don't want trailing whitespace
|
||||||
[tests/**.{rs,js}]
|
[tests/**.{rs,js}]
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
@@ -19,9 +22,9 @@ trim_trailing_whitespace = true
|
|||||||
[tests/ui/{frontmatter/frontmatter-whitespace-3.rs,parser/shebang/shebang-space.rs}]
|
[tests/ui/{frontmatter/frontmatter-whitespace-3.rs,parser/shebang/shebang-space.rs}]
|
||||||
trim_trailing_whitespace = false
|
trim_trailing_whitespace = false
|
||||||
|
|
||||||
[!src/llvm-project]
|
[src/llvm-project]
|
||||||
indent_style = space
|
indent_style = unset
|
||||||
indent_size = 4
|
indent_size = unset
|
||||||
|
|
||||||
[*.rs]
|
[*.rs]
|
||||||
max_line_length = 100
|
max_line_length = 100
|
||||||
|
|||||||
Reference in New Issue
Block a user