A Brief Introduction to cloc
cloc is used to calculate the number of lines of code and its GitHub page contains detailed documentation on the tool.[151] This section shows only the basic commands used to augment a change-frequency analysis with a lines-of-code dimension.
To get a summary of the content of your repository, move inside your repository and run cloc with the --quiet option:
| adam$ cloc . --quiet |
| ---------------------------------------------------------------------- |
| Language files blank comment code |
| ---------------------------------------------------------------------- |
| JavaScript 8208 122901 130552 655610 |
| HTML 243 1533 35 21836 |
| ... ... ... ... ... |
| Dockerfile 2 7 4 22 |
| Lisp 1 0 0 6 |
| ---------------------------------------------------------------------- ... |
Get Software Design X-Rays now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.