SonarQube Java
  1. SonarQube Java
  2. SONARJAVA-267

Rule: Avoid deeply nested if statements

    Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4
    • Component/s: Rules
    • Labels:
      None
    • Number of attachments :
      0

      Issue Links

        Activity

        Hide
        Dinesh Bolkensteyn added a comment -

        Done

        Show
        Dinesh Bolkensteyn added a comment - Done
        Hide
        Dinesh Bolkensteyn added a comment -

        Default severity should be minor and not major.

        Show
        Dinesh Bolkensteyn added a comment - Default severity should be minor and not major.
        Hide
        Dinesh Bolkensteyn added a comment -

        Done

        Show
        Dinesh Bolkensteyn added a comment - Done
        Hide
        Freddy Mallet added a comment -

        Some false-positives are generated in the following case:

        if(condition) {...}
        else if(condition2) {...}
        else if(condition3) {...}
        else if(condition4) {...}  <- unexpected issue
        
        Show
        Freddy Mallet added a comment - Some false-positives are generated in the following case: if (condition) {...} else if (condition2) {...} else if (condition3) {...} else if (condition4) {...} <- unexpected issue
        Hide
        Dinesh Bolkensteyn added a comment -

        Should be fixed

        Show
        Dinesh Bolkensteyn added a comment - Should be fixed
        Hide
        Freddy Mallet added a comment -

        Manually tested !

        Show
        Freddy Mallet added a comment - Manually tested !
        Hide
        Dinesh Bolkensteyn added a comment -

        Description

        Show
        Dinesh Bolkensteyn added a comment - Description
        Hide
        Dinesh Bolkensteyn added a comment -

        Description updated

        Show
        Dinesh Bolkensteyn added a comment - Description updated

          People

          • Assignee:
            Dinesh Bolkensteyn
            Reporter:
            Freddy Mallet
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: