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

Get cyclomatic complexity metrics for all files #196

Closed
emilppp opened this issue Apr 2, 2019 · 1 comment
Closed

Get cyclomatic complexity metrics for all files #196

emilppp opened this issue Apr 2, 2019 · 1 comment
Labels

Comments

@emilppp
Copy link

emilppp commented Apr 2, 2019

Hi! :)

Is there any way to get cyclomatic complexity metrics for all files, not only the elevated ones? I want to get an average cyclomatic complexity across all files in a project.

@adam-waldenberg
Copy link
Member

Hi @emilppp. You can edit metrics.py and play with the constants;

METRIC_CYCLOMATIC_COMPLEXITY_THRESHOLD
METRIC_CYCLOMATIC_COMPLEXITY_DENSITY_THRESHOLD

These specify the required value needed for the metric to be considered elevated. Set them to zero and you should get it for all files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants