Misidentifying a (some?) Java repo? #6255
Answered
by
lildude
delabassee
asked this question in
Classification
-
Describe the bugThis public repo contains
and yet, the repo is reported as "100% Shell"
Expected behaviourI would expect Java to be reported as the main language for this repo. Related discussionNA Additional notes |
Beta Was this translation helpful? Give feedback.
Answered by
lildude
Jan 17, 2023
Replies: 2 comments 1 reply
-
This is happening because all the Java files are under the You will need to implement a |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lildude
-
Shouldn't this be addressed? In the end, the inferred language (shell in this case) isn't correct. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is happening because all the Java files are under the
samples
directory which Linguist considers as documentation:https://github.com/github/linguist/blob/c1c34e5260797b4d598f5ec76f19723bfc5a1894/lib/linguist/documentation.yml#L33-L34
You will need to implement a
-linguist-documentation
override or rename the directory.