Skip to Content
Software Design X-Rays
book

Software Design X-Rays

by Adam Tornhill
March 2018
Intermediate to advanced content levelIntermediate to advanced
276 pages
7h 11m
English
Pragmatic Bookshelf
Content preview from Software Design X-Rays

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
 ---------------------------------------------------------------------- ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Righting Software

Righting Software

Juval Lowy
Design It!

Design It!

Michael Keeling
Flow Architectures

Flow Architectures

James Urquhart

Publisher Resources

ISBN: 9781680505795Errata Page