Page MenuHomeSolus

cloc - counts lines of source code in many programming languages.
Closed, ResolvedPublic

Description

Name of the software: cloc - Count Lines of Code
Poject/Product homepage: https://github.com/AlDanial/cloc
Why we should include this into the repository, i.e. what does it do that the alternatives do not? Actually, I've found nothing compared to this in the repository. It's a simple to use tool to generate several LOC metrics for your projects, with sophisticated options [1] and support for 249 languages [2].
Is it open source? Yes, GNU General Public License v2.0 (https://github.com/AlDanial/cloc/archive/1.82.tar.gz)

[1] https://github.com/AlDanial/cloc/#user-content-options-
[2] https://github.com/AlDanial/cloc/#user-content-recognized-languages-

Event Timeline

r3r57 created this task.Jul 19 2019, 4:20 PM

Technically we have R2914, but it's dead, so IMO this request is welcome.

If this gets accepted, I'd like to volunteer to maintain this. It's a nice little tool to have, I use it at work (RHEL/CentOS).

Though it seems cloc is the original standard SLOC counter, there are many alternatives these days:

https://github.com/XAMPPRocky/tokei/blob/master/COMPARISON.md
https://github.com/boyter/scc

Though we're talking about a difference of ~500 ms vs. <2 seconds on the entire Linux kernel here. It may be worth going with the longstanding one as others may come and go.

DataDrake triaged this task as Wishlist priority.Jul 25 2019, 11:17 AM
DataDrake moved this task from Backlog to Accepted For Inclusion on the Package Requests board.
r3r57 added a comment.Jul 25 2019, 1:28 PM

If this gets accepted, I'd like to volunteer to maintain this. It's a nice little tool to have, I use it at work (RHEL/CentOS).

@tomocafe will you submit a patch? otherwise I'll do.

@r3r57 Sure, I'll look into this today.