Skip to content

Linguist concludes a JS/markdown repo with a single perl file is somehow "46.2% Perl" #5455

Answered by lildude
Pomax asked this question in Classification
Discussion options

You must be logged in to vote

so something seems to be going very wrong here =)

Not from a Linguist perspective 😉 Maybe you missed the following when you read How Linguist Works:

Linguist starts by going through all the files in a repository and excludes all files that it determines to be binary data, vendored code, generated code, documentation, or are defined as data (e.g. SQL) or prose (e.g. Markdown) languages, whilst taking into account any overrides

This means all files in your docs dir will be ignored by default as they're considered documentation and all Markdown files will be ignored because they're considered prose.

Thus leaving only the files in src which contains your Perl file and brings us to the nex…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@Pomax
Comment options

@lildude
Comment options

@Pomax
Comment options

@lildude
Comment options

@Pomax
Comment options

Answer selected by lildude
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants