Linguist: SQL not being identified

Created on 13 Sep 2016  路  3Comments  路  Source: github/linguist

Repository: DROP_PROCEDURE_IF_EXISTS

The repository language is not correctly being identified. The source is SQL, and the extension also.

I've also added a .gitattributes in order to force it. It works when forcing to php or haskell, for example, but not for sql.

Most helpful comment

@yangsoosong Thanks for the information!

All 3 comments

SQL is not counted in statistics because it's considered a data language by Linguist. We discussed (and tried to change) this behavior several times in the past.

You can now override language definitions and file paths. You just need to make sql detectable for linguist library.
Adding *.sql linguist-detectable=true in .gitattributes solved this issue for me!

@yangsoosong Thanks for the information!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

friedc picture friedc  路  6Comments

philiparvidsson picture philiparvidsson  路  4Comments

oldmud0 picture oldmud0  路  6Comments

TimothyGu picture TimothyGu  路  5Comments

FranklinYu picture FranklinYu  路  4Comments