Skip to content

Commit 0d0fc39

Browse files
SyncFileContentsSyncFileContents
authored andcommitted
Sync .gitattributes
1 parent 6de4a15 commit 0d0fc39

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.gitattributes

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,19 @@
77
# Set default behaviour to automatically normalize line endings.
88
* text=auto
99

10+
# Force .NET source files to always use CRLF line endings to match the
11+
# end_of_line = crlf setting in .editorconfig. Without this, text=auto checks
12+
# these files out with LF on Linux/macOS, which makes the IDE0055 formatting
13+
# analyzer fail on every line on non-Windows checkouts (e.g. CI). Forcing CRLF
14+
# here keeps the working tree consistent with .editorconfig on every platform.
15+
*.cs text eol=crlf
16+
*.csx text eol=crlf
17+
*.cake text eol=crlf
18+
*.fs text eol=crlf
19+
*.fsx text eol=crlf
20+
*.vb text eol=crlf
21+
*.vbx text eol=crlf
22+
1023
# Force batch scripts to always use CRLF line endings so that if a repo is accessed
1124
# in Windows via a file share from Linux, the scripts will work.
1225
*.{cmd,[cC][mM][dD]} text eol=crlf

0 commit comments

Comments
 (0)