Skip to content

Commit

Permalink
Merge pull request nervosnetwork#4246 from eval-exec/exec/count-code-…
Browse files Browse the repository at this point in the history
…by-tokei

Drop `cargo-count` in `make stats`, replace it by `tokei`
  • Loading branch information
doitian authored Nov 27, 2023
2 parents 9995c8c + b1a97f9 commit 17abfa5
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 17abfa5

Please sign in to comment.