boyter / scc

Sloc, Cloc and Code: scc is a very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go
MIT License
6.58k stars 261 forks source link

In what unit, or how can I convert the complexity value #388

Closed BuddhiLW closed 1 year ago

BuddhiLW commented 1 year ago

I would like to know what I can compare the Complexity value to. For example, a project got 623 complexity (a very complex one), but how can I know if it's what I think, or what it actually is.

Are there tables for projects, case studies, comparisons etc?

My output:

───────────────────────────────────────────────────────────────────────────────
Language                 Files     Lines   Blanks  Comments     Code Complexity
───────────────────────────────────────────────────────────────────────────────
JavaScript                  18      8675      971       733     6971        623

How can I tell someone that this project is complex, you see what I mean? It's just a number, as it is.

boyter commented 1 year ago

Oddly enough I did do some work on this https://boyter.org/posts/an-informal-survey-of-10-million-github-bitbucket-gitlab-projects/ however I never folded the results back into this.

Something to put on my list.

I would suggest getting some other projects you know about and running against those to compare.

The other option is to use the --by-file flag, to see what is most complex by file. This can be a good way to work out what the values actually mean.

BuddhiLW commented 1 year ago

Thanks for the feedback