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

FP S4184: consider private(set) as a correct way to protect a variable against external writing

    Details

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

      Description

      S4184 is currently only considering the keyword "private" as the only one to configure a variable as a private one.
      S4184 should also consider private(set) as a correct way to protect the variable and in particular, a IBOutlet from behind changed outside of the Class.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                elena.vilchik Elena Vilchik
                Reporter:
                alexandre.gigleux Alexandre Gigleux
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: