Sitrep icon indicating copy to clipboard operation
Sitrep copied to clipboard

Sitrep vs. cloc Results

Open jshier opened this issue 5 years ago • 3 comments

Scanning my current branch of Alamofire, Sitrep gives these LOC results:

Sizes
   Total lines of code: 11102
   Source lines of code: 9481

However, cloc gives these results:

Language                     files          blank        comment           code
-------------------------------------------------------------------------------
Swift                           32           1606           3598           5897

Perhaps Sitrep could use a similar break down?

jshier avatar Feb 14 '20 00:02 jshier

We only realistically have one language to work with, but printing a blank/comment count would be great! Want to try implementing it yourself? I'm going to add the "good first issue" comment to flag this one up.

twostraws avatar Feb 20 '20 18:02 twostraws

I'm wondering if (with a command line flag) we could do a table like you show, except across files? So rather than Language Swift as the first field, it would be File a.swift, then b.swift, etc.

twostraws avatar Feb 20 '20 18:02 twostraws

@jshier Could you tell us the command used with cloc to have that report?

aruffolo avatar Feb 21 '21 16:02 aruffolo