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

Rule S2068: filter empty strings

    XMLWordPrintable

    Details

    • Type: False-Positive
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3
    • Component/s: None

      Description

      The rule should avoid raising issues when the literal string is empty:

      viewModel.didTapLogin(username: "", password: "")
      

      See false-positives on Peach https://peach.sonarsource.com/issues?tags=sonarswift-453

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              arseniy.zaostrovnykh Arseniy Zaostrovnykh
              Reporter:
              hendrik.buchwald Hendrik Buchwald
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: