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

Rule name : empty_count #2983

Closed
pranav21keshav opened this issue Nov 28, 2019 · 1 comment
Closed

Rule name : empty_count #2983

pranav21keshav opened this issue Nov 28, 2019 · 1 comment

Comments

@pranav21keshav
Copy link

Even for int variables if they are compared with zero, this rule triggers error or warning
"Empty Count Violation: Prefer checking isEmpty over comparing count to zero. (empty_count)"

@marcelofabri
Copy link
Collaborator

Duplicate of #827

@marcelofabri marcelofabri marked this as a duplicate of #827 Dec 2, 2019
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

2 participants