Skip to content

Detect PHP but I don't have any PHP or HTML code #5161

Locked Answered by lildude
kochol asked this question in Classification
Discussion options

You must be logged in to vote

This analysis is happening because of all the .inc files in https://github.com/kochol/ariyana/tree/master/src/gfx/private/transcoder

The .inc extension is a very generic extension associated with multiple languages so it need to be processed by the heuristics at https://github.com/github/linguist/blob/9eb9472be957108fc48b6c9f725f2100c18b7a5e/lib/linguist/heuristics.yml#L235-L247

None of those files are matching any of the heuristics so the analysis is falling through to the classifier which is making a guess based on the content of the samples Linguist has and it's made as best a guess as it can, and picked PHP, for example:

$ LINGUIST_DEBUG=1 github-linguist src/gfx/private/transcoder/ba…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by lildude
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@lildude
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #5157 on January 22, 2021 17:30.