Repository navigation
Fix @IBInspectable unused declarations with get/set - #3458
Merged
keith merged 2 commits intoDec 7, 2020
Merged
Conversation
keith
marked this pull request as ready for review
December 7, 2020 18:11
Collaborator
|
Fix looks good, thank you! Can you remove the changelog entry you added since the bug didn't ship in a production release? I'm still trying to come up with a good process for having pre-release versions, sorry for the confusion. |
keith
force-pushed
the
ks/fix-ibinspectable-unused-declarations-with-get-set
branch
from
December 7, 2020 18:20
255a87c to
5afeea9
Compare
Here's an example of your CHANGELOG entry: * Fix @IBInspectable unused declarations with get/set.
[keith](https://github.com/keith)
[#issue_number](https://github.com/realm/SwiftLint/issues/issue_number)note: There are two invisible spaces after the entry's text. Generated by 🚫 Danger |
This fixes an issue where `@IBInspectables` that have both a custom getter and setter were marked as dead if they weren't referenced in code even though in that case they can still have behavior if they are used from IB.
keith
force-pushed
the
ks/fix-ibinspectable-unused-declarations-with-get-set
branch
from
December 7, 2020 18:21
5afeea9 to
fd86b0f
Compare
Contributor
Author
|
Np, done |
Collaborator
|
CI is failing because the |
Contributor
Author
|
Broke out the 2 statements about ignoring the current entity, happy to do something more if you have something in mind, it's a nice improvement IMO but not much |
Collaborator
|
Perfect. |
jpsim
approved these changes
Dec 7, 2020
keith
deleted the
ks/fix-ibinspectable-unused-declarations-with-get-set
branch
December 7, 2020 19:07
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes an issue where
@IBInspectablesthat have both a customgetter and setter were marked as dead if they weren't referenced in code
even though in that case they can still have behavior if they are used
from IB.