Uploaded image for project: 'SonarSlang'
  1. SonarSlang
  2. SONARSLANG-325

Cognitive Complexity is not computed correctly for nested IF

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4
    • Component/s: Rules
    • Labels:
      None

      Description

      Cognitive complexity seems to be incorrectly computed for nested ifs.
      See this thread for more details: https://discuss.sonarsource.com/t/sonarruby-s3776-cognitive-complexity-wrongly-computed-for-nested-if-statements/1372

        Attachments

          Activity

            People

            • Assignee:
              christophe.zurn Christophe Zurn
              Reporter:
              christophe.zurn Christophe Zurn
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: