GU0060

November 24, 2021 ยท View on GitHub

Enum member value conflict

TopicValue
IdGU0060
SeverityWarning
EnabledTrue
CategoryGu.Analyzers.Correctness
CodeGU0060EnumMemberValueConflictsWithAnother

Description

The enum member has a value shared with the other enum member, but it's not explicitly declared as its alias. To fix this, assign a enum member.

Motivation

ADD MOTIVATION HERE

How to fix violations

ADD HOW TO FIX VIOLATIONS HERE

Configure severity

Via ruleset file.

Configure the severity per project, for more info see MSDN.

Via #pragma directive.

#pragma warning disable GU0060 // Enum member value conflict
Code violating the rule here
#pragma warning restore GU0060 // Enum member value conflict

Or put this at the top of the file to disable all instances.

#pragma warning disable GU0060 // Enum member value conflict

Via attribute [SuppressMessage].

[System.Diagnostics.CodeAnalysis.SuppressMessage("Gu.Analyzers.Correctness", 
    "GU0060:Enum member value conflict", 
    Justification = "Reason...")]