From aad0e417f5751f57927d26fe011774b7527fac40 Mon Sep 17 00:00:00 2001 From: Tobias Date: Tue, 6 Jan 2026 12:41:07 +0100 Subject: [PATCH] copy gitattributes from VE repo --- .gitattributes | 42 ++++++++++++++++++++++++++++++++++++++---- 1 file changed, 38 insertions(+), 4 deletions(-) diff --git a/.gitattributes b/.gitattributes index c963d3209..841e80bc0 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,4 +1,38 @@ -# Enforce LF for shell-related files only -*.sh text eol=lf -*.func text eol=lf -*.md text eol=lf +# --------------------------------------- +# Treat Shell files as first-class code +# --------------------------------------- +*.sh linguist-detectable=true +*.bash linguist-language=Shell +*.func linguist-language=Shell +*.install linguist-language=Shell + +# --------------------------------------- +# Treat Golang files as Go (for /api/) +api/**/*.go linguist-language=Go + +# --------------------------------------- +# Treat frontend as JavaScript/TypeScript (optional) +frontend/**/*.ts linguist-language=TypeScript +frontend/**/*.js linguist-language=JavaScript + +# --------------------------------------- +# Exclude documentation from stats +*.md linguist-documentation +docs/** linguist-documentation +README.md linguist-documentation +CONTRIBUTING.md linguist-documentation +SECURITY.md linguist-documentation + +# --------------------------------------- +# Exclude generated/config files +*.json linguist-generated +frontend/public/json/*.json linguist-generated=false +*.lock linguist-generated +*.yml linguist-generated +*.yaml linguist-generated +.github/** linguist-generated +.vscode/** linguist-generated + +# --------------------------------------- +# Standard text handling +* text=auto eol=lf