Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Comments on What is the most accurate CLOC (count lines of code) program?

Post

What is the most accurate CLOC (count lines of code) program?

+2
−1

I searched for "what is the most accurate lines of code counter linux", but didn't get relevant results. This tcount CLOC project says that it's somehow better than others ones. I don't really believe in this. So I wanted to find out which CLOC program is the most accurate.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

3 comment threads

The answer will be different depending on which laguage your code is written in. There isn't 1 tool t... (1 comment)
"Better" is often a very subjective term. In your case, can you describe what makes one program "bett... (5 comments)
Suggested rewrite (1 comment)
Suggested rewrite
matthewsnyder‭ wrote 3 months ago · edited 3 months ago

I think asking for a program that counts LOC is fair.

Because there is no single correct solution, you should say why you want to get a LOC count. If it's to measure complexity, then say that (and prepare for a bunch of ackchyuallys telling you the obvious caveat that it's not a perfect heuristic).

Instead of asking for "best" I think you should ask for "good" - it's not really interesting who won some contrived competition, but knowing a good tool is.

It's also a bit weird that you're asking specifically for lines of code, and then give as example a program that counts tokens instead of lines. Of course if your goal is to just measure complexity, that's fine, but you didn't say complexity - you said lines.

You're getting downvoted because people on this site sometimes prefer to criticize a question than help improve it. But if you rewrote it a bit I think it would be fine, and the votes would probably be more positive.