Instead it gets a warning only for the second property that it shouldn't use self.
Running SwiftFormat...
(lint mode - no files will be changed.)
.../foo.swift:9:1: warning: (redundantSelf) Insert/remove explicit self where applicable.
SwiftFormat completed in 0.93s.
Also
If the let someValue is commented out then there is no warning.
If the let someValue is moved to the top of init, then there is a warning for both self.id and self.amount.
If I have this file
When I run the following command, I'd expect there to be no lint warnings.
Instead it gets a warning only for the second property that it shouldn't use
self.
Also
let someValue
is commented out then there is no warning.let someValue
is moved to the top of init, then there is a warning for bothself.id
andself.amount
.