dotnet / dotnet/sdk

Remove CA2226 rule?

Open
#51,484 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

Code analyzer [CA2226](https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca2226) flags types that implement the equality operator but not the inequality operator (or vice versa). But both the C# and VB compilers already flag this situation ([CS0216](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/overloaded-operator-errors#boolean-and-short-circuit-operators) and [BC33033](https://learn.microsoft.com/en-us/dotnet/visual-basic/misc/bc33033)).

Can/should CA2226 be removed?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.