Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop cargo-count in make stats, replace it by tokei #4246

Merged
merged 1 commit into from
Nov 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading