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

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


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


  • SwiftLint version: 0.34.0
  • Installation method used: Homebrew

@marcelofabri marcelofabri added the bug label Aug 25, 2019


This comment has been minimized.

Copy link

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
None yet
2 participants
You can’t perform that action at this time.