Skip to content

Commit 271322c

Browse files
claudehyperpolymath
authored andcommitted
fix: Add .gitattributes for GitHub Linguist language detection
Configure GitHub Linguist to correctly identify repository languages: Primary language classification: - *.res, *.resi → ReScript (NOT TypeScript) - *.tla → TLA+ (formal verification) - *.rs → Rust (WASM modules) - *.ncl → Nickel (configuration) - justfile → Just (build system) Exclude from language stats: - *.bs.js files (generated by ReScript compiler) - .github/workflows (CI configuration) - docs/, examples/, benchmarks/ (documentation/tooling) This fixes GitHub incorrectly classifying the repository as TypeScript when it is actually a 100% ReScript + Rust + Deno codebase with zero TypeScript files (RSR Rhodium compliant). Line endings normalized to LF for all text files.
1 parent 1b390b5 commit 271322c

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

.gitattributes

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Fogbinder Language Classification for GitHub Linguist
2+
# RSR Rhodium Standard Repository - ReScript + WASM + Deno
3+
4+
# ReScript files (primary language)
5+
*.res linguist-language=ReScript
6+
*.resi linguist-language=ReScript
7+
8+
# ReScript generated JavaScript files (exclude from stats)
9+
*.bs.js linguist-generated=true
10+
11+
# TLA+ formal verification specs
12+
*.tla linguist-language=TLA
13+
14+
# Rust WASM modules
15+
*.rs linguist-language=Rust
16+
17+
# Deno configuration
18+
deno.json linguist-language=JSON
19+
deno.jsonc linguist-language=JSONC
20+
21+
# ReScript configuration
22+
bsconfig.json linguist-language=JSON
23+
24+
# Nickel configuration language
25+
*.ncl linguist-language=Nickel
26+
27+
# Justfile build system
28+
justfile linguist-language=Just
29+
30+
# AsciiDoc documentation
31+
*.adoc linguist-documentation=true linguist-language=AsciiDoc
32+
33+
# Markdown (exceptions only)
34+
*.md linguist-documentation=true
35+
36+
# Exclude from language stats
37+
.github/workflows/*.yml linguist-vendored=true
38+
docs/* linguist-documentation=true
39+
examples/* linguist-documentation=true
40+
benchmarks/* linguist-vendored=true
41+
scripts/* linguist-vendored=true
42+
43+
# Git LFS (for large assets if needed)
44+
*.wasm filter=lfs diff=lfs merge=lfs -text
45+
46+
# Line endings
47+
* text=auto
48+
*.res text eol=lf
49+
*.resi text eol=lf
50+
*.rs text eol=lf
51+
*.js text eol=lf
52+
*.json text eol=lf
53+
*.adoc text eol=lf
54+
*.md text eol=lf
55+
*.sh text eol=lf
56+
*.yml text eol=lf
57+
*.tla text eol=lf

0 commit comments

Comments
 (0)