Skip to content

Misidentifying code as CLIPS #6252

Discussion options

You must be logged in to vote

Does Linguist rely primarily on filename extension? It seems to, despite the docs talking about heuristics and other methods.

Linguist uses multiple strategies as detailed in https://github.com/github/linguist/blob/master/docs/how-linguist-works.md It works from most specific to least specific in an attempt to reduce the number of possible languages as it progresses through the strategies whilst still being efficient. The extension does however have a large influence as it is one of the first strategies used and if that extension is only associated with one language, that language is used and no further stragies are considered.

Looking at my repo (a LinuxCNC set of configuration and co…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JetForMe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #6250 on January 14, 2023 10:12.