Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Get info (max and mean) about characters per line #554

Open
rubenrua opened this issue Jun 4, 2020 · 1 comment
Open

Feature: Get info (max and mean) about characters per line #554

rubenrua opened this issue Jun 4, 2020 · 1 comment

Comments

@rubenrua
Copy link

rubenrua commented Jun 4, 2020

Last week a news about characters per line was very popular.

80-characters-per-line limits should be terminal, says Linux kernel chief Linus Torvalds

origin: https://www.theregister.com/2020/06/01/linux_5_7/

I want to get info about characters per line in different project. Not only the maximun characters per line also the mean.

I found it an interesting feature for this project. The output should be like:

-----------------------------------------------------------------------------------------------------
 Language            Files        Lines         Code     Comments       Blanks	   MaxLine   MeanLine
----------------------------------------------------------------------------------------------------
 BASH                    4           49           30           10            9		80    	 12
 JSON                    1         1214         1214            0            0	       320    	 55
 Markdown                4         1236         1236            0            0	      	12    	  4
 Rust                   19         3049         2224          431          394	       180    	 34
 Shell                   1           49           38            1           10	       200    	 44
 TOML                    1           79           68            0           11	      	43    	 16
---------------------------------------------------------------------------------------------------
 Total                  30         5676         4810          442          424	       xxx    	xxx
----------------------------------------------------------------------------------------------------

Please let me know if it is out of scope or if you like the idea I can help with the implementation.

@XAMPPRocky
Copy link
Owner

XAMPPRocky commented Jun 4, 2020

Thank you for your issue! I don’t know if I’ll include it, I would need to think about more about the implementation, but I do think it’s interesting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants