github-linguist / linguist

Language Savant. If your repository's language is being reported incorrectly, send us a pull request!
MIT License
12.26k stars 4.24k forks source link

Wrong code detection in Qt C/C++ repository #240

Closed marcodiiga closed 12 years ago

marcodiiga commented 12 years ago

Hi, my repository (https://github.com/marcodiiga/gds) is marked with "Objective C" language at 77% although the project is completely written in C/C++ (and four shader files). Can something be done about it?

tucnak commented 12 years ago

I've had the same problem few days ago. My https://github.com/tucnak/galactica project was marked with Objective-C but it is on Qt - so it can't be ObjC.

I've started https://github.com/github/linguist/issues/225 issue here and @josh helped me - it was problem in QScintilla files. You should download problem files to linguist to teach him or wait for a help.

marcodiiga commented 12 years ago

Thank you, I need someone to help me track down the files that are uncorrectly marked as objective-C since I can't see a way to sort them out

tucnak commented 12 years ago

Wait for a help.

josh commented 12 years ago

I just added more C samples a few days ago 400086a5c852cc8c75975aa0490bf802744471b8

Its not live in production yet, but would probably fix your issue.

I'm not sure if your gds project is licensed as open source, but with your permission we could incorporate some of those incorrectly labeled files into our classifier db to test against.

marcodiiga commented 12 years ago

It's totally opensource, you have my complete permission. Thank you for your help!

tucnak commented 12 years ago

@josh sorry for offtop - but why are you asking about license? AFAIK @marcodiiga's gds has LICENSE file.

josh commented 12 years ago

458890b4b9d90f3c3f9d24ac5c61f97385b84e34 684a57dbc0c1b8442dadeac1223b88da699ff19d