-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix false positives in valid_ibinspectable rule when using Swift 5.2 (#…
…3155) * Fix false positives in valid_ibinspectable rule when using Swift 5.2 when defining inspectable properties in class extensions with computed properties. The following was triggering: ```swift extension Foo { @IBInspectable var color: UIColor { set { self.bar.textColor = newValue } get { return self.bar.textColor } } } ``` Fix by checking to see if an instance property has `set` keywords in its body when running with Swift 5.2 or later. * fixup! Fix false positives in valid_ibinspectable rule when using Swift 5.2
- Loading branch information
Showing
2 changed files
with
123 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters