Skip to content

Commit 1a84d18

Browse files
authored
Mark Verify files as lf and utf8 according to the recommended settings (#41992)
See https://github.com/VerifyTests/Verify?tab=readme-ov-file#text-file-settings
1 parent 29904b2 commit 1a84d18

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.editorconfig

+9-2
Original file line numberDiff line numberDiff line change
@@ -506,5 +506,12 @@ dotnet_diagnostic.IDE0040.severity = warning
506506
[*.txt]
507507
insert_final_newline = false
508508

509-
[test/dotnet-new.Tests/**/Approvals/**]
510-
trim_trailing_whitespace = false
509+
# Verify settings
510+
[*.{received,verified}.{txt,xml,json}]
511+
charset = "utf-8-bom"
512+
end_of_line = lf
513+
indent_size = unset
514+
indent_style = unset
515+
insert_final_newline = false
516+
tab_width = unset
517+
trim_trailing_whitespace = false

.gitattributes

+6-1
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,9 @@
5555

5656
*.jpg binary
5757
*.png binary
58-
*.gif binary
58+
*.gif binary
59+
60+
# VerifyTests
61+
*.verified.txt text eol=lf working-tree-encoding=UTF-8
62+
*.verified.xml text eol=lf working-tree-encoding=UTF-8
63+
*.verified.json text eol=lf working-tree-encoding=UTF-8

0 commit comments

Comments
 (0)