-
Notifications
You must be signed in to change notification settings - Fork 38
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
Do not use !isEmpty methods from the collections – need to use isNotEmpty instead #692
Labels
bug
Something isn't working
Comments
Same can apply to strings: |
aktsay6
added a commit
that referenced
this issue
Jan 13, 2021
### What's done: * Added new rule * Added warn tests * Added fix tests
5 tasks
aktsay6
added a commit
that referenced
this issue
Jan 14, 2021
### What's done: * Fixed bug * Added guide to chapter 5
aktsay6
added a commit
that referenced
this issue
Jan 14, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the philosophy of Kotlin - we should not be using !isEmpty - we should explicitly use isNotEmpty
This should be a warning.
Also same for !isNotEmpty - we should suggest isEmpty for such cases
The text was updated successfully, but these errors were encountered: