Uploaded image for project: 'Rules Repository'
  1. Rules Repository
  2. RSPEC-3626

Jump statements should not be redundant

    Details

    • Type: Code Smell Detection
    • Status: Active
    • Resolution: Unresolved
    • Labels:
    • Message:
      Remove this redundant jump.
    • Highlighting:
      Hide

      statement

      Show
      statement
    • Default Severity:
      Minor
    • Impact:
      Low
    • Likelihood:
      Low
    • Default Quality Profiles:
      Sonar way
    • Targeted languages:
      Go, VB.Net, VB6
    • Covered Languages:
      ABAP, C#, C, C++, Java, JavaScript, PHP, PL/SQL, Python, Swift, T-SQL, TypeScript
    • Remediation Function:
      Constant/Issue
    • Constant Cost:
      1min
    • Analysis Scope:
      Main Sources, Test Sources
    • Implementation details:
    • PMD:
      AvoidBranchingStatementAsLastInLoop
    • ReSharper:
      RedundantJumpStatement
    • TSLint-SonarTS:
      no-redundant-jump

      Description

      Jump statements such as return and continue let you change the default flow of program execution, but jump statements that direct the control flow to the original direction are just a waste of keystrokes.

        Attachments

          Issue Links

          1.
          C-Family RSPEC-3781 Language-Specification Active Unassigned
          2.
          T-SQL RSPEC-4511 Language-Specification Active Unassigned
          3.
          Java RSPEC-4562 Language-Specification Active Unassigned
          4.
          JavaScript RSPEC-4631 Language-Specification Active Unassigned
          5.
          ABAP RSPEC-4845 Language-Specification Active Unassigned
          6.
          C# RSPEC-4954 Language-Specification Active Unassigned
          7.
          PHP RSPEC-4955 Language-Specification Active Unassigned
          8.
          PL/SQL RSPEC-5243 Language-Specification Active Unassigned
          9.
          Python RSPEC-5431 Language-Specification Active Unassigned
          10.
          Swift RSPEC-5565 Language-Specification Active Unassigned

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tamas.vajk Tamas Vajk (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: