Skip to content

Commit d113ce2

Browse files
committed
ci: enforce LF line endings via .gitattributes to satisfy rustfmt newline_style on Windows
1 parent f3cb285 commit d113ce2

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.gitattributes

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Normalize line endings and enforce LF in the working tree on all platforms
2+
* text=auto
3+
4+
# Enforce LF for source and config files (prevents CRLF on Windows runners)
5+
*.rs text eol=lf
6+
*.toml text eol=lf
7+
*.md text eol=lf
8+
*.yml text eol=lf
9+
*.yaml text eol=lf
10+
*.sh text eol=lf
11+
*.ts text eol=lf
12+
*.tsx text eol=lf
13+
*.js text eol=lf
14+
*.jsx text eol=lf
15+
*.json text eol=lf
16+
*.css text eol=lf
17+
*.scss text eol=lf
18+
*.html text eol=lf
19+
*.sql text eol=lf
20+
21+
# Treat common binary files as binary (no line ending conversion)
22+
*.png binary
23+
*.jpg binary
24+
*.jpeg binary
25+
*.gif binary
26+
*.svg binary
27+
*.ico binary
28+
*.pdf binary
29+
*.zip binary
30+
*.tar binary
31+
*.gz binary
32+
*.tgz binary
33+
*.xz binary
34+
*.7z binary

0 commit comments

Comments
 (0)