cloc icon indicating copy to clipboard operation
cloc copied to clipboard

Feature request: please consider adding line length distribution

Open MaxTranced opened this issue 6 years ago • 2 comments

Hi!

Thank you for the awesome work! :)

Even though it's not resonating with the name of the project ("counting lines") I do feel that this feature request might belong here: please consider adding an optional output for (even basic) line length distribution. This could look something along the lines of:

  • shortest and longest non-empty code line length
  • number of lines grouped by length of the lines (and maybe by category too: comment vs. code)

Thank you for taking this into consideration!

MaxTranced avatar Nov 22 '18 09:11 MaxTranced

It's a nice idea, but like #234, it would take a substantial rewrite to implement this request. I just didn't have the foresight years ago to implement cloc's inner workings in a more easily pluggable way. So regretfully I won't be implementing it. At the same time, I won't close this issue either, in the (very low likely) event that I do begin a rewrite.

AlDanial avatar Nov 26 '18 02:11 AlDanial

Thank you!

MaxTranced avatar Nov 26 '18 07:11 MaxTranced