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
2 tasks done
weakfl opened this issue Aug 25, 2019 · 1 comment · Fixed by #2843
Closed
2 tasks done

redundant_type_annotation conflicts with valid_ibinspectable #2842

weakfl opened this issue Aug 25, 2019 · 1 comment · Fixed by #2843
Labels
bug Unexpected and reproducible misbehavior.

Comments

@weakfl
Copy link

weakfl 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 Unexpected and reproducible misbehavior. label Aug 25, 2019
@marcelofabri
Copy link
Collaborator

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
Labels
bug Unexpected and reproducible misbehavior.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants