Swiftlint: redundant_type_annotation conflicts with valid_ibinspectable

Created on 25 Aug 2019  路  1Comment  路  Source: realm/SwiftLint

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
bug

Most helpful comment

You can workaround this by using:

@IBInspectable var fooColor: UIColor = .white

>All comments

You can workaround this by using:

@IBInspectable var fooColor: UIColor = .white
Was this page helpful?
0 / 5 - 0 ratings