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 guard below triggers the empty_count rule however PHFetchResult doesn't actually have an isEmpty computed property so it's impossible to use it.
private var fetchResult = PHFetchResult<PHAsset>()
guard fetchResult.count > 0 else {
return
}
``
##### Complete output when running SwiftLint, including the stack trace and command used
I'm running this in a Run Script Phase
```bash
set -e
set -o pipefail
"${SRCROOT}/SwiftLint/swiftlint" --quiet --strict | sed 's/warning:/error:/g'
Output
Empty Count Violation: Prefer checking `isEmpty` over comparing `count` to zero. (empty_count)
Environment
SwiftLint version 0.33.1, portable version
I'm not using nested config files
I'll include this anyway but I don't think it matters for this, I've replaced the names of my app/frameworks in the included bit.
New Issue Checklist
Describe the bug
The guard below triggers the
empty_count
rule howeverPHFetchResult
doesn't actually have anisEmpty
computed property so it's impossible to use it.Output
Environment
I'll include this anyway but I don't think it matters for this, I've replaced the names of my app/frameworks in the
included
bit.The text was updated successfully, but these errors were encountered: