Skip to content

Commit e2ee445

Browse files
committed
chore: count only shipped code in GitHub's language statistics
Test suites, development scripts and development-only tools (the coverage and format checks, the fuzz targets and the Snowflake recorder) are marked linguist-documentation, so the language bar reflects the code SQLQuack ships.
1 parent ac5cab7 commit e2ee445

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

‎.gitattributes‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# GitHub's language statistics count the code SQLQuack ships. Test suites, development scripts
2+
# and development-only tools are marked as documentation so the statistics leave them out.
3+
/tests/** linguist-documentation
4+
/scripts/** linguist-documentation
5+
/crates/**/tests/** linguist-documentation
6+
/crates/**/tests.rs linguist-documentation
7+
/tools/** linguist-documentation
8+
/fuzz/** linguist-documentation
9+
/recorder/** linguist-documentation
10+
/website/scripts/** linguist-documentation

‎scripts/clutter_guard/constants.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
TOP_LEVEL_ENTRIES: frozenset[str] = frozenset(
2525
{
2626
".cargo",
27+
".gitattributes",
2728
".github",
2829
".gitignore",
2930
".release-please-manifest.json",

0 commit comments

Comments
 (0)