We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
redundantSelf
self.
class UserScreenPresenter: ScreenPresenter { func onAppear() { self.sessionInteractor.stage.compactMap(\.?.session).latestValues(on: .main) } private var session: Session? }
$ swiftformat --self insert --selfrequired -v test.swift Running SwiftFormat... Reading swift-version file at /Users/hubstaff/Developer/hubstaff/ios/.swift-version (version 5.8) Formatting /Users/hubstaff/Developer/hubstaff/ios/test.swift -- rules applied: redundantSelf Writing /Users/hubstaff/Developer/hubstaff/ios/test.swift SwiftFormat completed in 0.01s. 1/1 files formatted.
It appears that SwiftFormat incorrectly assumes the keypath is referring to a property on UserScreenPresenter while this is not the case.
UserScreenPresenter
The text was updated successfully, but these errors were encountered:
No branches or pull requests
$ swiftformat --self insert --selfrequired -v test.swift Running SwiftFormat... Reading swift-version file at /Users/hubstaff/Developer/hubstaff/ios/.swift-version (version 5.8) Formatting /Users/hubstaff/Developer/hubstaff/ios/test.swift -- rules applied: redundantSelf Writing /Users/hubstaff/Developer/hubstaff/ios/test.swift SwiftFormat completed in 0.01s. 1/1 files formatted.
It appears that SwiftFormat incorrectly assumes the keypath is referring to a property on
UserScreenPresenter
while this is not the case.The text was updated successfully, but these errors were encountered: