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

use config for calculating complexity #677

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

damek24
Copy link

@damek24 damek24 commented Apr 5, 2024

Q A
Bug fix? yes
New feature? no

Previously configuration value for max allowed complexity was only used for reporting errors. For calculating complexity percentage 1 was always used as max allowed complexity. As a result when setting this config value to any number higher than 1 and having any class with complexity higher than 1 disallowed to have complexity percentage at level 100%. This PR fixes this - for now config value for max allowed complexity is both used for percentage calculations and for error reporting

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.

None yet

1 participant