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

Add --sloccount-format flag to print a more SLOCCount like COCOMO calculation #302

Merged
merged 2 commits into from
Nov 4, 2021

Conversation

fschaefer
Copy link
Contributor

As mentioned in the previous PR, I've added a flag to output a more SLOCCount like COCOMO calculation. I prefer this one because you can see the formula and values used.

@@ -987,6 +994,23 @@ func trimNameShort(summary LanguageSummary, trimmedName string) string {
return trimmedName
}

func calcolateCocomoSLOCCount(sumCode int64, str *strings.Builder) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor typo in the function name.

@boyter boyter merged commit d2cc1d3 into boyter:master Nov 4, 2021
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

Successfully merging this pull request may close these issues.

3 participants