Skip to content
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

false positives on redundant_objc_attribute #2499

Closed
2 tasks done
weakfl opened this issue Dec 4, 2018 · 1 comment
Closed
2 tasks done

false positives on redundant_objc_attribute #2499

weakfl opened this issue Dec 4, 2018 · 1 comment

Comments

@weakfl
Copy link

weakfl commented Dec 4, 2018

New Issue Checklist

Describe the bug

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.

According to the documentation this should be not triggering, but it is.

Environment

  • SwiftLint 0.29.1
  • Homebrew

Example

bar.addTarget(self, action: #selector(foo), for: .touchUpInside)
// This triggers a violation:
@objc private func foo() {
}
@marcelofabri
Copy link
Collaborator

Closed in #2501

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants