Skip to content

Commit 84109d3

Browse files
author
Vianney de Bellabre
committed
Fix
1 parent 4e5640c commit 84109d3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

RULES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Some are applicable for different technologies.
6666
| GCI87 | Use collection indexer | Collection indexers should be used instead of Linq, when available | | 🚫 | 🚫 | 🚫 | 🚫 | 🚫 || 🚫 |
6767
| GCI88 | Dispose resource asynchronously | Resources that implement `IAsyncDisposable` should be disposed asynchronously | | 🚫 | 🚫 | 🚫 | 🚫 | 🚫 || 🚫 |
6868
| GCI89 | Avoid using function cache without limit | If a function has decorators without max size cache, the program will store unlimited data | ||||||||
69-
| GCI91 | Use `Cast` instead of `Select` to cast | `Cast` is optimized for this scenario and should be used | ||||||||
69+
| GCI90 | Use `Cast` instead of `Select` to cast | `Cast` is optimized for this scenario and should be used | ||||||||
7070
| GCI91 | Use `Where` before `OrderBy` | Filter elements before sorting them for improved efficiency | ||||||||
7171
| GCI92 | Use string.Length instead of comparison with empty string | Comparing a string to an empty string is unnecessary and can be replaced by a call to `string.Length` which is more performant and more readable. | | 🚫 | 🚫 | 🚫 | 🚫 | 🚫 || 🚫 |
7272
| GCI93 | Return `Task` directly | Consider returning a `Task` directly instead of a single `await` | ||||||||

src/main/rules/GCI90/csharp/GCI90.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Use Cast instead of Select to cast.
44

55
== Why is this an issue ?
66

7-
Cast is more efficient than Select for casting operations, it's usage leads to better performance.
7+
Cast is more efficient than Select for casting operations, its usage leads to better performance.
88

99
=== When can it be ignored ?
1010

0 commit comments

Comments
 (0)