You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: RULES.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,7 @@ Some are applicable for different technologies.
66
66
| GCI87 | Use collection indexer | Collection indexers should be used instead of Linq, when available || 🚫 | 🚫 | 🚫 | 🚫 | 🚫 | ✅ | 🚫 |
67
67
| GCI88 | Dispose resource asynchronously | Resources that implement `IAsyncDisposable` should be disposed asynchronously || 🚫 | 🚫 | 🚫 | 🚫 | 🚫 | ✅ | 🚫 |
68
68
| GCI89 | Avoid using function cache without limit | If a function has decorators without max size cache, the program will store unlimited data || ❓ | ❓ | ❓ | ✅ | ❓ | ❓ | ❓ |
69
+
| GCI90 | Use `Cast` instead of `Select` to cast |`Cast` is optimized for this scenario and should be used || ❓ | ❓ | ❓ | ❓ | ❓ | ✅ | ❓ |
69
70
| GCI91 | Use `Where` before `OrderBy`| Filter elements before sorting them for improved efficiency || ❓ | ❓ | ❓ | ❓ | ❓ | ✅ | ❓ |
70
71
| 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. || 🚫 | 🚫 | 🚫 | 🚫 | 🚫 | ✅ | 🚫 |
71
72
| GCI93 | Return `Task` directly | Consider returning a `Task` directly instead of a single `await`|| ❓ | ❓ | ❓ | ❓ | ❓ | ✅ | ❓ |
0 commit comments