Skip to content
New issue

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

false positive empty_count violation #884

Closed
delebedev opened this issue Nov 20, 2016 · 1 comment
Closed

false positive empty_count violation #884

delebedev opened this issue Nov 20, 2016 · 1 comment

Comments

@delebedev
Copy link
Contributor

delebedev commented Nov 20, 2016

let count = try! appDelegate.persistentContainer.viewContext.count(for: fetchRequest)

if count == 0 { // swiftlint error
}

Workaround is to rename variable to something different, i.e. entitiesCount

@jpsim
Copy link
Collaborator

jpsim commented Nov 25, 2016

Please see #827 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@jpsim @delebedev and others