Notifications
Clear all
BugOverflow
1
Posty
1
Users
0
Reactions
734
Widok
0
19/08/2022 10:04 am
Topic starter
- download cloc.exe (for windows! any other app that was compiled using MSYS2 may throw fatal error/Stack trace) and put in somewehere
- example code
$rawData = (shell_exec("powershell -ExecutionPolicy Bypass -Command \" ..\\tools\\cloc-1.94.exe ..\\resources\\js ..\\resources\\views ..\\resources\\sass ..\\app ..\\routes ..\\config | select-string 'SUM' | ForEach-Object { -split \$_ } \"")); $splittedData = preg_split('/\r\n|\r|\n/', $rawData); $totalFiles = $splittedData[1]; $totalLines = $splittedData[4];