dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
19.07k stars 4.04k forks source link

Enable existing "strict" warnings under /warnversion #45704

Open gafter opened 4 years ago

gafter commented 4 years ago

This depends on the completion of https://github.com/dotnet/roslyn/issues/45702. It is part of https://github.com/dotnet/roslyn/issues/45701. This is an umbrella issue to track the work of enabling existing diagnostics that are reported under "strict" mode in warning wave "5". See https://github.com/dotnet/roslyn/projects/10#column-3494327, possibly including the following:

Note: Most of these suggestions are errors rather than warnings when diagnosed in strict mode. We will need to decide whether to downgrade them to warnings (presumably with a new error code) when reporting them in a warning wave, or to permit errors to be reported in a wave.

gafter commented 4 years ago

Some of these are targeting 16.8. Others will be deferred. When we schedule or start work on one, we'll create a work item to track it.