Skip to content

Proposal: Median option #54

Description

@yuonoda

Hey, thank you for your providing nice tool !
I would like you to add new option to show median of cyclomatic complexity.

I often meet occasions that a distribution of cyclomatic complexity in my code is highly skewed.
For example, a complexity of almost all functions in my repo is around 1.
But, a little functions marks 10 to 100 complexity.
In such case, average complexity tend to be higher than median or mode, so cannot capture whole trend.

I propose to inplement median option to this command like this,

    -med, -med-short      show the median complexity over all functions;
                          the short option prints the value without a label

This should be helpful for those who meet same issue with me.

Thanks,

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions