Sonarqube no longer detecting "Cognitive Complexity of methods should not be too high" rule

Must-share information (formatted with Markdown):

  • which versions are you using : Sonarqube community LTS
  • how is SonarQube deployed: Docker
  • what are you trying to achieve : Okay, so I updated my docker’s sonarqube to the latest community-lts version, after updated this rule is kinda ignored, so our project will not have this issue on our sonarqube anymore, even though we 100% sure it will not pass this rule.
  • what have you tried so far to achieve this : I already tried to delete .sonarqube folder and reinstall sonarqube, but the issue still there
    *Language : .Net Framework(C#)

*N.B. I already used the default sonar way and sonar gate but this rule is still ignored, any help is greatly appreciated, thank you very much.

Hey there.

What version of Visual Studio / MSBuild are you using? We received a similar report for 17.5.

1 Like

Thanks for the answer, really appreciated

Hey @luthfi_fawwaz

Visual Studio 17.5.4, released yesterday, should address the issue. Please let us know if you face the issue after upgrading.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.