Uploaded image for project: 'Rules Repository'
  1. Rules Repository
  2. RSPEC-134 Control flow statements "if", "for", "while", "switch" and "try" should not be nested too deeply
  3. RSPEC-4762

Ruby: Control flow statements "if", "for", "while", "until", "case" and "begin...rescue" should not be nested too deeply

    Details

    • Type: Language-Specification
    • Status: Active
    • Resolution: Unresolved
    • Labels:
      None
    • Impact:
      Unknown 'null' severity
    • Likelihood:
      Unknown 'null' severity

      Description

      Nested if, for, while, until, case and begin...rescue statements are key ingredients for making what's known as "Spaghetti code".

      Such code is hard to read, refactor and therefore maintain.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: