Skip to content

Instantly share code, notes, and snippets.

@NN---
NN--- / .editorconfig
Last active February 21, 2023 15:03 — forked from cezarypiatek/.editorconfig
This snippet set severity level to error for different rules related to the reference nullability
[*.cs]
# Dereference of a possibly null reference.
dotnet_diagnostic.CS8602.severity = error
# Object or collection initializer implicitly dereferences possibly null member.
dotnet_diagnostic.CS8670.severity = error
# Possible null reference assignment.
dotnet_diagnostic.CS8601.severity = error
# Unboxing a possibly null value.
dotnet_diagnostic.CS8605.severity = error
# Possible null reference return.