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

Related issues

larslockefeer picture larslockefeer  路  3Comments

castus picture castus  路  3Comments

Tableau-David-Potter picture Tableau-David-Potter  路  3Comments

tomasebrennan picture tomasebrennan  路  3Comments

rajohns08 picture rajohns08  路  3Comments