Protocol Buffers not listing on repo #6378
-
For one of my repos (https://github.com/boalang/compiler) I noticed the detected languages does not list Protocol Buffers. It appears there is support for detected protobuf in Linguist:
But when I run on the whole repository, it does not show any
Shouldn't this list the files above? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Nope. Protobuf files are considered data: ... so are not considered by default (from "How Linguist works"):
If you want them to count, you'll need to use the |
Beta Was this translation helpful? Give feedback.
-
Great, thank you for the pointer to the overrides docs. I didn't spot that before! That fixed my specific case (and other issues!). |
Beta Was this translation helpful? Give feedback.
Nope. Protobuf files are considered data:
https://github.com/github/linguist/blob/5a0c74277548122267d84283910abd5e0b89380e/lib/linguist/languages.yml#L5282-L5293
... so are not considered by default (from "How Linguist works"):
If you want them to count, you'll need to use the
linguist-detectable
override.