Skip to main content
Version: Next

MPCLI005

Negated CLI flag applied to a non-nullable-Boolean or counted property.

PropertyValue
CategoryUsage
Default severityError
AvailabilityPublic analyzer package

Configure severity

.editorconfig
dotnet_diagnostic.MPCLI005.severity = error

Use none to disable the rule, or silent, suggestion, warning, or error to change its severity.

Suppress a specific occurrence

#pragma warning disable MPCLI005
// Code that intentionally violates MPCLI005.
#pragma warning restore MPCLI005