Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1.19 KB

GU0075.md

File metadata and controls

51 lines (36 loc) · 1.19 KB

GU0075

Prefer return nullable

Topic Value
Id GU0075
Severity Hidden
Enabled True
Category Gu.Analyzers.Correctness
Code ParameterAnalyzer

Description

Prefer return nullable Nicer for pattern matching.

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 GU0075 // Prefer return nullable
Code violating the rule here
#pragma warning restore GU0075 // Prefer return nullable

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

#pragma warning disable GU0075 // Prefer return nullable

Via attribute [SuppressMessage].

[System.Diagnostics.CodeAnalysis.SuppressMessage("Gu.Analyzers.Correctness", 
    "GU0075:Prefer return nullable", 
    Justification = "Reason...")]