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 empty_count rule seems to key off a variable named 'count' that isn't related to the Container.count method. In the following code there is no reference to a Container but it still generates an Empty Count violation where it shouldn't.
func emptyCountBug(item: Int?) {
if let count = item, count > 0 {
print("Prefer checking isEmpty...")
}
if let count1 = item, count1 > 0 {
print("No Comment")
}
}
The text was updated successfully, but these errors were encountered:
The empty_count rule seems to key off a variable named 'count' that isn't related to the Container.count method. In the following code there is no reference to a Container but it still generates an Empty Count violation where it shouldn't.
The text was updated successfully, but these errors were encountered: