linguist: Languages like XML not shown in the language bar
I’ve seen numerous repositories (my own, for example), but although they include languages such as .xml
, .gradle
, etc., these are not shown in the language bar.
They can be seen in search, and they are present in the languages.yml file here, so I’m not sure why they don’t appear on the language bar.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 3
- Comments: 16 (6 by maintainers)
What about XML-layout files in android projects? When layout created in code it’s counted, and when in XML - not? Isn’t it as much important as HTML in sites repos? HTML is always counted, btw. I think would be great, if users can specify which file should be included in list
@rostopira I completely agree with you here, which is why I suggested this in the first place. I am an Android developer too and it’s annoying that the XML code isn’t displayed even though it’s used just like HTML in the context of Android projects.
I’ll take the opportunity to briefly mention my idea that maybe there could be a new
build script
class of languages. Makefile, CMake, Maven, Gradle, etc would all fit in this class. The build script languages would not affect repository classification. The reason would be that people are usually more interested in the implementation language than the build script.@FarbodSalamat-Zadeh Makes sense to me. Maybe you could open a pull request with Android View XML (that way we could count those XML files only) as a new language to initiate discussion. I’m not from GitHub though and I can’t guarantee everyone will share my views 😉
@larsbrinkhoff That is reasonable. it would be more useful for the build language content to be excluded when classifying the repository itself. For the language bar, though, I still feel that it might be useful to include build scripts since most non-trivial projects would usually have a good amount of non-trivial custom build logic.
Would it be reasonable to have the
build script
category be excluded for classifying the repository yet included in the language bar?@davidzchen I would agree that Gradle and Maven Pom should not be classified as data, especially Gradle file. It could be linked with @larsbrinkhoff 's suggestion that they are grouped under ‘build script’ languages.
We find this is generally what people are looking for when browsing a repository i.e. what programming languages are used in this repository?