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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
In case of a mutating getter, the get keyword must be specified to add the mutating behavior but this trigger the implicit_getter warning.
get
mutating
implicit_getter
struct Counter { private var count: Int init(start: Int = 0) { self.count = start } var next: Int? { mutating get { // warning: Implicit Getter Violation: Computed read-only properties should avoid using the get keyword. (implicit_getter) defer { self.count += 1 } return self.count } } }
Edit: swiftlint version: 0.19.0
The text was updated successfully, but these errors were encountered:
Similar to #1309
Sorry, something went wrong.
Implemented in #1678.
No branches or pull requests
In case of a mutating getter, the
get
keyword must be specified to add themutating
behavior but this trigger theimplicit_getter
warning.Edit: swiftlint version: 0.19.0
The text was updated successfully, but these errors were encountered: