-
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
Fix false positives on redundant_objc_attribute
rule when using nested types
#2540
Conversation
@dirtydanee @JaviSoto could you take a look at this and see if it makes sense? I'm not super familiar with |
Generated by 🚫 Danger |
Source/SwiftLintFramework/Rules/Idiomatic/RedundantObjcAttributeRule.swift
Outdated
Show resolved
Hide resolved
I think the updated implementation is pretty neat, and its a much better approach to only check the parent structure instead of iterating on the whole file on each declaration kind. |
Hey! Sorry it took me so long to reply. Yeah this code looks so much better! It also solves the scenario I posted on #2539: @objcMembers
class Foo {
@objc enum Bar { }
} But if I add it to the "non triggering examples", it's passing now 👍 |
Nice work! |
Fixes #2539