Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.59 KB

File metadata and controls

45 lines (30 loc) · 1.59 KB

Rule suppress suggestion - Decision

Meeting

Date for meeting

11-02-2021

ATC Core members in meeting

Rule summary

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

What is the problem

Issue #24

Decision

We update the root/.editorconfig with severity = none and a doc-link.

Reason & arguments

  • 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'.

  • Link to how-to use compare-strings