Swiftformat: Request: Remove explicit .init when possible

Created on 26 Apr 2017  路  3Comments  路  Source: nicklockwood/SwiftFormat

I'd love to have a rule for this. SwiftLint has a rule for it.

- let int = Int.init(4)

+ let int = Int(4)

I've no idea if that's beyond the scope of SwiftFormat. Feel free to close if it is. 鈽猴笍

Most helpful comment

This should be doable, I'll look into it 馃憤

All 3 comments

This should be doable, I'll look into it 馃憤

Hopefully this can be closed now.

Added in 0.29.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

soranoba picture soranoba  路  3Comments

AniHovhannisyanAni picture AniHovhannisyanAni  路  3Comments

meherkasam picture meherkasam  路  4Comments

sebastianfrelle picture sebastianfrelle  路  4Comments

MaxDesiatov picture MaxDesiatov  路  3Comments