user4948798
user4948798

Reputation: 2100

Refactor this function to reduce its Cognitive Complexity - Tagged as Critical issue

I am using SonarQube Version – 6.7.7(LTS) and Python language analyzer plugin version - sonar-python-plugin-1.13.0.2922.jar.

Completed the sonar analysis successfully, then I could see “Refactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed” related issues being tagged as Critical issue.

enter image description here

I feel this issue should go under Major (or) Minor category but not as Critical issue.

Upvotes: 0

Views: 1195

Answers (1)

Pierre-Yves
Pierre-Yves

Reputation: 1546

You should define your own quality profile to customize the severity of that rule. See the documentation on quality profiles.

Upvotes: 1

Related Questions