You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The rule "no_empty_block" causes default functions in protocols to be detected. It should specifically exclude functions in protocols from this detection.
The thing is that SwiftLint doesn't know that extension Animal is an extension of a protocol as it works only on the syntax level.
I wonder, though, why you think the rule shouldn't trigger in this case. The fact that the default behavior of a method is to do nothing, doesn't seem obvious and could be worth a comment. This would already silence the rule.
SimplyDanny
added
the
discussion
Topics that cannot be categorized as bugs or enhancements yet. They require further discussions.
label
Aug 12, 2024
New Issue Checklist
0.56.1
The rule "no_empty_block" causes default functions in protocols to be detected. It should specifically exclude functions in protocols from this detection.
for example
The text was updated successfully, but these errors were encountered: