File: .gitstats.yml

package info (click to toggle)
php-di 7.1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,940 kB
  • sloc: php: 10,572; makefile: 42; xml: 17; sh: 10; pascal: 5
file content (12 lines) | stat: -rw-r--r-- 842 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
tasks:
    'Commit message': "git log -1 --pretty=%B | head -n 1"
    'Commit author': "git log -1 --pretty=%an"
    'Number of files': "find . -type f | wc -l"
    'Number of directories': "find . -type d | wc -l"
    'Number of PHP files': "find . -type f -name '*.php' | wc -l"
    'Number of documentation files': "find . -type f -name '*.md' | wc -l"
    'Lines of documentation': "find . -type f -name '*.md' | xargs wc -l | tail -n 1 | awk '{print $1}'"
    'Lines of code': "phploc src | grep 'Lines of Code (LOC)' | awk '{print $5}'"
    'Lines of comments': "phploc src | grep 'Comment Lines of Code (CLOC)' | awk '{print $6}'"
    'Average Complexity per LLOC': "phploc src | grep 'Average Complexity per LLOC' | awk '{print $5}'"
    'Number of tests': "phploc tests --count-tests | grep 'Methods' | tail -n 1 | awk '{print $2}'"