Carefully handcrafted JavaScript classified as "generated" #7263
Unanswered
abrudz
asked this question in
Classification
Replies: 1 comment
-
Linguist is detecting these files are likely to be minified and thus generated here: linguist/lib/linguist/generated.rb Lines 162 to 176 in c959cb5
No. It is a lot more likely for such files to be legitimately minified than handcrafted. You can use an override for those rare cases where the files are handcrafted but fall into this calculation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Some people use a terse coding style for popular languages like C and JavaScript, popularised by Arthur Whitney. An example of this is this PR which was wrongly classified as generated, when it is in fact carefully handcrafted. I don't know how Linguist detects generated code, but it should surely err on the side of considering code non-generated.
Beta Was this translation helpful? Give feedback.
All reactions