Skip to content

Commit 6d32ce8

Browse files
committed
Optimize code-stats.sh
1 parent d6c3611 commit 6d32ce8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripts/code-stats.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@ __CURRENT__=$(pwd)
33
__DIR__=$(cd "$(dirname "$0")";pwd)
44

55
# enter the dir
6-
cd "${__DIR__}"
7-
cloc ../ --exclude-dir=thirdparty,Debug,CMakeFiles,build,CMakeFiles,.git
6+
cd "${__DIR__}/.."
7+
cloc . --exclude-dir=thirdparty,Debug,CMakeFiles,build,.git \
8+
--fullpath \
9+
--not-match-d='tools/vendor' \
10+
--not-match-d='tests/include/lib/vendor' \
11+
--not-match-f='ext-src/php_swoole_library\.h$'

0 commit comments

Comments
 (0)