Skip to content

Commit

Permalink
docs: Update docs/HANDLED_RULES.md (#1031)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Apr 27, 2023
1 parent a85ec45 commit a3c1b43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/HANDLED_RULES.md
Original file line number Diff line number Diff line change
Expand Up @@ -546,11 +546,11 @@ Example:
...
- if (myCollection.size() < 1) { // Noncompliant
+ if (myCollection.isEmpty()) {
...
- if (0 >= myCollection.size()) { // Noncompliant
+ if (myCollection.isEmpty()) {
```

> We ignore expressions such as `0 == myCollections.size()` based on heuristics
> that it is not a common practice to do so.

-----

Expand Down

0 comments on commit a3c1b43

Please sign in to comment.