Skip to content

Commit b1a97f9

Browse files
committed
Drop cargo-count in make stats, replace it by tokei
Signed-off-by: Eval EXEC <execvy@gmail.com>
1 parent 9995c8c commit b1a97f9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,11 @@ clean-node-files: ## Clean files generated by `ckb init`
261261
##@ Helpers
262262
.PHONY: stats
263263
stats: ## Counting lines of code.
264-
@cargo count --version || cargo +nightly-2022-03-22 install --git https://github.com/kbknapp/cargo-count
265-
@cargo count --separator , --unsafe-statistics
264+
@command -v tokei || cargo install tokei
265+
@tokei
266+
# count lines of unsafe code
267+
# ===============================================================================
268+
@rg --no-heading unsafe --count-matches | sed 's/:/\ /g' | column -t
266269

267270
.PHONY: help
268271
help: ## Display help message.

0 commit comments

Comments
 (0)