From 47e38b58ca75cb9035110ce7435a6dd6c9b4adbb Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Sun, 12 Jul 2026 12:25:24 +0800 Subject: [PATCH] chore: exclude tests from language statistics --- .gitattributes | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitattributes b/.gitattributes index 9cac1c0979..c89d144f17 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,13 @@ # Keep formatter-sensitive source files consistent across platforms. apps/desktop/src/**/*.ts text eol=lf apps/desktop/src/**/*.vue text eol=lf + +# Keep tests available for review and CI without counting them as shipped code +# in GitHub's repository language breakdown. +packages/app-tests/** linguist-vendored +apps/desktop/src/**/__tests__/** linguist-vendored +apps/desktop/src/**/*.spec.ts linguist-vendored +apps/desktop/src/**/*.test.ts linguist-vendored +packages/**/tests/** linguist-vendored +packages/**/*.spec.ts linguist-vendored +packages/**/*.test.ts linguist-vendored