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

Consider cyclomatic complexity as part of the health score. #550

Closed
isoos opened this issue Aug 3, 2019 · 5 comments
Closed

Consider cyclomatic complexity as part of the health score. #550

isoos opened this issue Aug 3, 2019 · 5 comments
Labels
type-enhancement A request for a change that isn't a bug

Comments

@isoos
Copy link
Collaborator

isoos commented Aug 3, 2019

An implementation of such analysis:
https://github.com/daniel-v/codemetrics

@pq
Copy link
Member

pq commented Aug 4, 2019

cc @bwilkerson who might have some thoughts based on experience implementing similar metrics for Java back in the day...

@jonasfj
Copy link
Member

jonasfj commented Aug 5, 2019

Note. I like this idea, but we have plenty of metrics we score on, let's make those better and explain them better before we add opaque metrics like this.

@eernstg
Copy link
Member

eernstg commented Aug 5, 2019

A good measure might be

weighted_average_of_complexity_metrics / inherent_complexity_of_problem

It wouldn't be particularly helpful to systematically punish every package that solves a complex problem, and it might not be possible to write solutions to complex problems with low complexity metrics. Now we just need a really robust and reliable way to measure the inherent complexity of the problem. ;-)

@sigurdm sigurdm added the type-enhancement A request for a change that isn't a bug label Nov 9, 2023
@sigurdm
Copy link
Contributor

sigurdm commented Nov 9, 2023

Personally I think the complexity metrics are cool, but way to subjective to start scoring packages on.

Maybe we can use it in other ways.

@jonasfj
Copy link
Member

jonasfj commented Jan 18, 2024

we're not planning to do this.

@jonasfj jonasfj closed this as completed Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

5 participants