-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove @IBOutlet and @IBInspectable from UnusedDeclarationRule #3184
Conversation
Note making this change for folks is not entirely safe. If you remove an IBInspectable definition, without removing it from IB, it just warns in the console, but if you remove an IBOutlet without removing it from IB, it crashes. |
Generated by 🚫 Danger |
@jpsim what do you think about this? |
0056cdd
to
6e49f12
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it makes sense to do this. Can you please add a change log entry and merge yourself when CI is green? Thanks!
Codecov Report
@@ Coverage Diff @@
## master #3184 +/- ##
=======================================
Coverage 90.50% 90.51%
=======================================
Files 420 420
Lines 20555 20555
=======================================
+ Hits 18604 18605 +1
+ Misses 1951 1950 -1
Continue to review full report at Codecov.
|
The original implementation wasn't tested so it regressed. #3184
The original implementation wasn't tested so it regressed. #3184
This list was intended to be things that could have side effects from
being in IB, or just being dynamic, and therefore we cannot tell if they
are used or not. In the case of the 2 attributes I'm removing, they
could be used in IB, but if they aren't used in code, they should still
be considered dead.