We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
cargo-count
make stats
tokei
1 parent 9995c8c commit b1a97f9Copy full SHA for b1a97f9
Makefile
@@ -261,8 +261,11 @@ clean-node-files: ## Clean files generated by `ckb init`
261
##@ Helpers
262
.PHONY: stats
263
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
+ @command -v tokei || cargo install tokei
+ @tokei
266
+ # count lines of unsafe code
267
+ # ===============================================================================
268
+ @rg --no-heading unsafe --count-matches | sed 's/:/\ /g' | column -t
269
270
.PHONY: help
271
help: ## Display help message.
0 commit comments