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

redundant_type_annotation conflicts with valid_ibinspectable #2842

Closed
weakfl opened this issue Aug 25, 2019 · 1 comment · Fixed by #2843

Comments

@weakfl
Copy link

commented Aug 25, 2019

New Issue Checklist

Describe the bug

Triggers rule valid_ibinspectable:

@IBInspectable var fooColor = UIColor.white

Adding the type triggers redundant_type_annotation :

@IBInspectable var fooColor: UIColor = UIColor.white

Environment

  • SwiftLint version: 0.34.0
  • Installation method used: Homebrew

@marcelofabri marcelofabri added the bug label Aug 25, 2019

@marcelofabri

This comment has been minimized.

Copy link
Collaborator

commented Aug 25, 2019

You can workaround this by using:

@IBInspectable var fooColor: UIColor = .white
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.