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
weakfl opened this Issue Dec 4, 2018 · 1 comment

Comments

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

This comment has been minimized.

Copy link
Collaborator

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