Skip to content

Commit

Permalink
Drop cargo-count in make stats, replace it by tokei
Browse files Browse the repository at this point in the history
Signed-off-by: Eval EXEC <[email protected]>
  • Loading branch information
eval-exec committed Nov 25, 2023
1 parent 9995c8c commit b1a97f9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,11 @@ clean-node-files: ## Clean files generated by `ckb init`
##@ Helpers
.PHONY: stats
stats: ## Counting lines of code.
@cargo count --version || cargo +nightly-2022-03-22 install --git https://github.com/kbknapp/cargo-count
@cargo count --separator , --unsafe-statistics
@command -v tokei || cargo install tokei
@tokei
# count lines of unsafe code
# ===============================================================================
@rg --no-heading unsafe --count-matches | sed 's/:/\ /g' | column -t

.PHONY: help
help: ## Display help message.
Expand Down

0 comments on commit b1a97f9

Please sign in to comment.