Skip to content

Commit 2d314a1

Browse files
committed
Updated new rule MiKo_5018 to simplify value comparisons for parameters and properties
(resolves #1090)
1 parent 2274cf5 commit 2d314a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

MiKo.Analyzer.Shared/Resources.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

MiKo.Analyzer.Shared/Resources.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4920,7 +4920,7 @@ This organization ensures clarity and makes the code easier to find, understand
49204920
<value>Move value comparison before reference comparison</value>
49214921
</data>
49224922
<data name="MiKo_5018_Description" xml:space="preserve">
4923-
<value>Comparisons on simple values are faster than comparisons on complex references such as collections. Hence, the value comparisons should be placed before the reference comparisons.</value>
4923+
<value>Place value comparisons before reference comparisons. Simple value comparisons are faster than complex reference comparisons, like those involving collections. This approach improves performance.</value>
49244924
</data>
49254925
<data name="MiKo_5018_MessageFormat" xml:space="preserve">
49264926
<value>Place value comparison before reference comparison</value>

0 commit comments

Comments
 (0)