Skip to content

Commit

Permalink
.gitattributes - correct language detection
Browse files Browse the repository at this point in the history
Attempting to sign up to https://bestpractices.coreinfrastructure.org/en/projects
complains with "Implementation languages is too long (maximum is 254 characters)"

Looking at:

 curl -H "Accept: application/vnd.github.v3+json"   https://api.github.com/repos/MariaDB/server/languages

It does appear that we're (just) over the limit.

As github is based on https://github.com/github/linguist, let's just
play nice and make our languages look realistic.
  • Loading branch information
grooverdan committed Jan 15, 2021
1 parent 0dfabf6 commit 9a08fcb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,16 @@ pcre/testdata/greppatN4 -text
*.ic diff=cpp
*.cpp diff=cpp
*.java diff=cpp

# Github lists too many languages
# curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/MariaDB/server/languages
# Their detection is based on https://github.com/github/linguist#overrides so we use some overrides
zlib/* linguist-vendored
tests/*.tst linguist-language=SQL
tests/*.res linguist-language=SQL
storage/innobase/include/univ.i linguist-language=C
*.inc linguist-language=MariaDB\ Test
*.test linguist-language=MariaDB\ Test
*.result linguist-language=MariaDB\ Test
*.frm linguist-language=MariaDB\ Table
*.h.pp linguist-language=C

0 comments on commit 9a08fcb

Please sign in to comment.