Detecting YAML format on Ansible repositories #5165
-
Problem DescriptionSince most repositories related to Ansible are mostly composed of YAML files, why is this not taken into account for language detection? URL of the affected repository:https://github.com/geerlingguy/ansible-role-nginx Last modified on:2020-12-07 Expected language:YAML Detected language:Either HTML or Shell most of the time |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Because YAML isn't considered a programming language by Linguist (note: If you really want your repo to count the YAML files, you can implement the detectable override. |
Beta Was this translation helpful? Give feedback.
Because YAML isn't considered a programming language by Linguist (note:
type: data
) and as such is ignored when calculating the statistics:https://github.com/github/linguist/blob/633d196c170e002bcccb4143d6906787f360e08b/lib/linguist/languages.yml#L6357-L6383
If you really want your repo to count the YAML files, you can implement the detectable override.