count lines of code for entire project
Afficher commentaires plus anciens
Hi All,
I am looking into counting source code of lines for entire project. Is there a way to do it? I looked into sloc() somebdy posted but it counts only one file at a time. I want to count for the entire project so soemthign can go into the foler and look for each and every .m file
Réponse acceptée
Plus de réponses (2)
Demetrio Rodriguez Tereshkin
le 14 Avr 2016
1 vote
This is what you are looking for: https://github.com/AlDanial/cloc
Preetham Manjunatha
le 25 Nov 2025
Modifié(e) : Preetham Manjunatha
le 25 Nov 2025
0 votes
Here is a lightweight MATLAB utility that recursively counts code, comment, and blank lines across files or directories and writes a per-file summary and grand totals to lineCount.txt: Count Lines.
Catégories
En savoir plus sur File Operations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!