Misidentifying a (some?) Java repo? #6255
-
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.
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.
-
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.
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.