dotnet / dotnet/roslyn

IDE0370 (remove unnecessary suppression): allow to exclude non-annotated APIs

Open
#82,003 0 comments 3 reactions 0 assignees View on GitHub
Area-IDE Feature - IDE0079 Feature Request
Dominant language
C#
Stars
20.7k
Forks
4.3k
PR merge metrics
PR metrics pending

Description

This is a feature request to allow an .editorconfig option to not report/analyze code that is not nullable aware.

If I have code like `var x = SomeExpression!`, where `SomeExpression` is not nullable-aware, I would like this to not produce a warning. This is useful for multi-targeting scenarios where one TFM is annotated and the other is not. And it's also better than disabling the analyzer completely on old TFMs (e.g, .NET Framework).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.