11-02-2021
Value | |
---|---|
Title | MA0006 Use String.Equals instead of equality operator |
CheckId | MA0006 |
Category | Usage |
Link | https://github.com/meziantou/Meziantou.Analyzer/blob/master/docs/Rules/MA0006.md |
We update the root/.editorconfig
with severity = none
and a doc-link.
-
By default we disable this rule because in most cases we are only doing ordinal comparisons anyway, and == leads to cleaner code.
-
Exception to this rule is, when working with multi cultured strings then is needed like is 'Straße' equal 'Strasse'.