You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+47Lines changed: 47 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -411,3 +411,50 @@ More information on the current configuration can be obtained via:
411
411
ulimit -a
412
412
```
413
413
414
+
## Counting number of lines of codes
415
+
416
+
It might be useful at some point to count the number of lines of code in a given project.
417
+
[Cloc](https://github.com/AlDanial/cloc) is an open-source tool that counts blank lines, comment lines, and physical lines of source code in many programming languages.
418
+
419
+
In [Pinocchio](https://github.com/stack-of-tasks/pinocchio), counting the important lines of code can be done using:
420
+
421
+
```bash
422
+
cloc unittest src include examples bindings
423
+
```
424
+
425
+
which gives:
426
+
```
427
+
3149 text files.
428
+
2299 unique files.
429
+
970 files ignored.
430
+
431
+
github.com/AlDanial/cloc v 2.04 T=0.90 s (2543.7 files/s, 395546.2 lines/s)
0 commit comments