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

empty_count is triggered on variables/constants named count #2897

Closed
JanMichaelPeter opened this issue Oct 11, 2019 · 1 comment
Closed

empty_count is triggered on variables/constants named count #2897

JanMichaelPeter opened this issue Oct 11, 2019 · 1 comment
Labels
duplicate Issues that already exist in other terms.

Comments

@JanMichaelPeter
Copy link

if someone names a variable count and checks if its 0 like count == 0 swiftlint throws an error and says “prefer .isEmpty() over checking count ==0” because it thinks that someone is using the method .count() on an array even though that is not the case

@marcelofabri
Copy link
Collaborator

Duplicate of #827.

@marcelofabri marcelofabri added the duplicate Issues that already exist in other terms. label Oct 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issues that already exist in other terms.
Projects
None yet
Development

No branches or pull requests

2 participants