Detects a lot of Javascript instead of PHP #6482
-
i just commited my repository to github and it said that it is 72.2% Javascript, which simply cannot be correct bc the project is built with Yii2 https://github.com/yayimhavingfun/taskforce <-url last modified on 20/07/2023 should be PHP, detected as Javascript |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It certainly can. Lingusit calculates based on the bytes of code and you have considerably more Javascript than PHP: ➜ github-linguist taskforce/
72.24% 685476 JavaScript
19.57% 185642 PHP
6.64% 63003 HTML
1.50% 14206 CSS
0.05% 517 Batchfile These four files account for all of that:
➜ /bin/ls -lh taskforce/web/js/
total 1592
-rw-r--r-- 1 lildude staff 333K 21 Jul 07:39 dropzone-amd-module.js
-rw-r--r-- 1 lildude staff 333K 21 Jul 07:39 dropzone.js
-rw-r--r-- 1 lildude staff 112K 21 Jul 07:39 dropzone.min.js # Linguist ignores this file
-rw-r--r-- 1 lildude staff 882B 21 Jul 07:39 landing.js
-rw-r--r-- 1 lildude staff 2.2K 21 Jul 07:39 main.js
You can also implement an override to tell Linguist to ignore any of those files. |
Beta Was this translation helpful? Give feedback.
It certainly can. Lingusit calculates based on the bytes of code and you have considerably more Javascript than PHP:
These four files account for all of that: