Uploaded image for project: 'SonarSwift'
  1. SonarSwift
  2. SONARSWIFT-275

Rule S3923: All branches in a conditional structure should not have exactly the same implementation

    XMLWordPrintable

    Details

      Description

      Implement RSPEC-3923 to find conditional structures where all branches are the same, and update the implementation of RSPEC-1871 to

      • not raise issues on such cases
      • respect the newly added exception:

        Blocks in an if chain that contain a single line of code are ignored, as are blocks in a switch statement that contain a single line of code with or without a following break.

      common rule

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pierre-yves.nicolas Pierre-Yves Nicolas
              Reporter:
              ann.campbell.2 Ann Campbell
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: