-
Notifications
You must be signed in to change notification settings - Fork 2
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
What's the engine for counting the lines of code of projects? #12
Comments
I currently use git2-rs to retrieve all commits from the current branch. For each commit, I calculate the line count by subtracting the number of deleted lines from the number of added lines (line count = added - deleted). To get the total line count, I sum these values across all commits. |
Why do not employ the tokei/sloccount/sloc etc. line counting engines? I think they are more professional at counting lines; meanwhile, they are Language-sensitive。 |
There are two places where the line count is needed:
|
Thanks. I think that's OK for now. |
I'm very curious which tool or engine is used to count lines of code of projects?
The text was updated successfully, but these errors were encountered: