Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 1.33 KB

GU0060.md

File metadata and controls

50 lines (36 loc) · 1.33 KB

GU0060

Enum member value conflict

Topic Value
Id GU0060
Severity Warning
Enabled True
Category Gu.Analyzers.Correctness
Code GU0060EnumMemberValueConflictsWithAnother

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...")]