diff --git a/dev/tools/apstats.php b/dev/tools/apstats.php index 13e44be17ef..adb3cbe0ff9 100755 --- a/dev/tools/apstats.php +++ b/dev/tools/apstats.php @@ -111,6 +111,16 @@ $output_arrtd = array(); $resexectd = 0; exec($commandcheck, $output_arrtd, $resexectd); + +// Count lines of code of dependencies +$commandcheck = 'dev/tools/github_lines_perusers.sh'; +print 'Execute github_lines_perusers to count lines of code in dependencies: '.$commandcheck."\n"; +$output_arrglpu = array(); +$resexecglpu = 0; +exec($commandcheck, $output_arrglpu, $resexecglpu); + + + $arrayoflineofcode = array(); $arraycocomo = array(); $arrayofmetrics = array( @@ -325,12 +335,18 @@ div.fiche>form>div.div-table-responsive, div.fiche>form>div.div-table-responsive $html .= ''."\n"; + +// Header + $html .= '
'."\n"; $html .= '

Advanced Project Statistics

'."\n"; $currentDate = date("Y-m-d H:i:s"); // Format: Year-Month-Day Hour:Minute:Second $html .= 'Generated on '.$currentDate.' in '.($timeend - $timestart).' seconds'."\n"; $html .= '
'."\n"; + +// Lines of code + $html .= '
'."\n"; $html .= '

Lines of code

'."\n"; @@ -408,6 +424,37 @@ $html .= ''; $html .= '
'."\n"; + +// Contributions + +$html .= '
'."\n"; +$html .= '

Contributions

'."\n"; + +$html .= '
'."\n"; + +$html .= 'TODO...'; + +$html .= '
'; + +$html .= '
'."\n"; + + +// Contributor + +$html .= '
'."\n"; +$html .= '

Contributors

'."\n"; + +$html .= '
'."\n"; + +$html .= 'TODO...'; + +$html .= '
'; + +$html .= '
'."\n"; + + +// Project value + $html .= '
'."\n"; $html .= '

Project value

'."\n"; @@ -437,6 +484,9 @@ foreach ($output_arrtd as $line) { } } + +// Technical debt + $html .= '
'."\n"; $html .= '

Technical debt (PHPStan level '.$phpstanlevel.' -> '.$nblines.' warnings)

'."\n"; @@ -451,6 +501,9 @@ $html .= ''; $html .= '
'."\n"; + +// JS code + $html .= '