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

weakfl opened this Issue Dec 4, 2018 · 1 comment


None yet
2 participants
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.


  • SwiftLint 0.29.1
  • Homebrew


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

This comment has been minimized.

Copy link

marcelofabri commented Dec 5, 2018

Closed in #2501

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment