(arr)
| 21 | } |
| 22 | |
| 23 | const countOthers = (arr) => { |
| 24 | return { |
| 25 | blank : 0, |
| 26 | code : 0, |
| 27 | comment : 0, |
| 28 | size : arr.map((x) => x.size).reduce((total, x) => total + x, 0), |
| 29 | total : arr.length, |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | const countTextFile = (fileList, isJS = false) => { |
| 34 | return fileList.reduce((total, x) => { |