We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The redundant_objc_attribute rule yields false positives if a private function needs to be marked @objc in order to be used with a selector.
redundant_objc_attribute
private
@objc
According to the documentation this should be not triggering, but it is.
bar.addTarget(self, action: #selector(foo), for: .touchUpInside) // This triggers a violation: @objc private func foo() { }
The text was updated successfully, but these errors were encountered:
Closed in #2501
Sorry, something went wrong.
No branches or pull requests
New Issue Checklist
Describe the bug
The
redundant_objc_attribute
rule yields false positives if aprivate
function needs to be marked@objc
in order to be used with a selector.According to the documentation this should be not triggering, but it is.
Environment
Example
The text was updated successfully, but these errors were encountered: