Language is not showing up #6236
Answered
by
lildude
Purfview
asked this question in
Classification
-
I have a JavaScript repo where the language is not being detected: https://github.com/Purfview/Discogs-Scout Expected behaviourRepo gets "JavaScript" tag. |
Beta Was this translation helpful? Give feedback.
Answered by
lildude
Jan 1, 2023
Replies: 1 comment
-
This is happening because linguist is detecting the file as being minified JavaScript due to many many lines that are longer then 110 chars and is thus considering it generated and this ignores the file. $ github-linguist Discogs-Scout/Discogs_Scout.user.js
Discogs-Scout/Discogs_Scout.user.js: 792 lines (734 sloc)
type: Text
mime type: application/javascript
language: JavaScript
appears to be generated source code
$ You'll need to implement an override to explicitly mark the file as not being a generated file. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lildude
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is happening because linguist is detecting the file as being minified JavaScript due to many many lines that are longer then 110 chars and is thus considering it generated and this ignores the file.
You'll need to implement an override to explicitly mark the file as not being a generated file.